Click here to Skip to main content
12,623,511 members (27,867 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# 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 22:18pm
Updated 11-Nov-12 0:56am
Nelek110.5K
v2
Comments
Shanalal Kasim 11-Nov-12 3:22am
   
Provide error details
Waleedkassem 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 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 11 Nov 2012
Copyright © CodeProject, 1999-2016
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