Last post Oct 17, 2016 09:43 AM by Chris Zhao
Oct 05, 2016 01:49 AM|ARMohan|LINK
I have a a soap wsdl document. Using Visual Studio 2010 i did 'Add Service Reference' to create a proxy client.
It is throwing runtime exception as class type mismatch.
I looked into the wsdl document. The structure is as follows:
As per above structure i see a a tag with <authorization> having a child tag with same name.
Is this causing problem. Is there a way to check if a wsdl document is valid or not for creating wrapper classes in DOtNet?
Oct 05, 2016 10:54 AM|mgebhard|LINK
I'm guessing here... You're probably physically wrote a class and are trying to pass or retrieve this class to the web method rather than using the class generated by the 'Add Service Wizard'.
Other than that you might want to consult the service documentation.
Oct 12, 2016 01:15 PM|ARMohan|LINK
Oct 17, 2016 09:43 AM|Chris Zhao|LINK
By default, Web references are assigned a namespace that corresponds to their server name. You can change this value and enter a custom namespace name.
If you want to use another name for a class, you can use the name attribute with the DataMember/DataContract Attribute.