B
Brian
I have a WSDL interface written by our customer. I want to create our own web service instance that we can test our software against. So I used wsdl.exe to generate a base WebService class that has the methods described in the WSDL
I then created the web service and provided an override of each method and copied the WebAttributes from the abstract class to the instance class (Why don't I inherit the attributes???).
When I try to look at the ASMX page I get an error stating that my element "<SampleElementName>" cannot be resolved because it is both a method message as well as a type.
What really is happening is that "<SampleElementName>" is the message parameter type in the WSDL and it is used in two web methods. If I make the name unique by changing the 'RequestElementName' attribute of the SoapDocumentMethodAttribute, then it works.
When I look at the WSDL generated, there are two element definitions that are exactly the same except for the element name (which only differs by the character '1')
Why can't I use the same element across two methods? Why doesn't wsdl.exe throw an error and complain like aps.net does
Thank
Brian
I then created the web service and provided an override of each method and copied the WebAttributes from the abstract class to the instance class (Why don't I inherit the attributes???).
When I try to look at the ASMX page I get an error stating that my element "<SampleElementName>" cannot be resolved because it is both a method message as well as a type.
What really is happening is that "<SampleElementName>" is the message parameter type in the WSDL and it is used in two web methods. If I make the name unique by changing the 'RequestElementName' attribute of the SoapDocumentMethodAttribute, then it works.
When I look at the WSDL generated, there are two element definitions that are exactly the same except for the element name (which only differs by the character '1')
Why can't I use the same element across two methods? Why doesn't wsdl.exe throw an error and complain like aps.net does
Thank
Brian