Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
when i added an online web service to my project i get the error namespace of the webservice already has a definition for the object
 

any help please
 
OP's additional information about the error copied from comment below
Error	1	The namespace 'CashUTest.ServiceReference1' already contains a definition for 'cashUDirect'
Posted 10-Nov-12 21:18pm
Edited 10-Nov-12 23:56pm
Nelek52.5K
v2
Comments
Shanalal Kasim at 11-Nov-12 3:22am
   
Provide error details
Waleedkassem at 11-Nov-12 3:30am
   
Error 1 The namespace 'CashUTest.ServiceReference1' already contains a definition for 'cashUDirect'
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Waleedkassem at 11-Nov-12 3:44am
   
I have add it but the problem i can build the application because of the already contains a definition for object auto generated code
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I have get the xsd file and generate the objects using the xsd.exe tool, then I have replace the soap header by the normal xml header I get it from serializing the object that I get from the xsd tool, here once I get the response I change the header than I deseralized like any other xml file it works
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 11 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100