Problem with WebReference and automatically generated code.  
Author Message
Daniel Hilgarth





PostPosted: ASMX Web Services and XML Serialization, Problem with WebReference and automatically generated code. Top

Hi,

Imagine, I have a WebService (*.wsdl), that has two methods X and XAsync in the SoapBinding Y. When adding the web reference, VS automatically creates *Async methods for all existing methods. This will then result in X (from WSDL), XAsync (auto-generated), XAsync (from WSDL), XAsync1Async (auto-generated).

Now, the problem is obvious: Two methods named XAsync. Strange enough, the WebMethodAttribute is XAsync1 for the second occurence of XAsync:

[System.Web.Services.WebMethodAttribute(MessageName="XAsync1")]

Also, you can see, the XAsync1Async, also has the '1' in its name, so, why not XAsync Is this a bug of VS

Kind regards,

Daniel



.NET Development16  
 
 
Daniel Hilgarth





PostPosted: ASMX Web Services and XML Serialization, Problem with WebReference and automatically generated code. Top

Is this an unknown problem