.NET Framework Bookmark and Share   
 index > ASMX Web Services and XML Serialization > WS-Addressing & WSDL (pre-WCF)
 

WS-Addressing & WSDL (pre-WCF)

I have a web service that is defined with methods annotated with the [WebMethod] attribute.It's in .NET 2.0. I can't go "fully WCF" (meaning, the class has to continue to inherit from WebService), but I may consider cosmetic changes and deploying in .NET 3.5.I need to add a WS-Addressing attributeto thewsdl:input element in the generated WSDL. I would like to rely on the automated WSDL generation from the .asmx.

Before:

<wsdl:portType name="CatalogWebServiceSoap">

<wsdl:operation name="GetServiceVersion">

<wsdl:input message="tns:GetServiceVersionSoapIn" />

<wsdl:output message="tns:GetServiceVersionSoapOut" />

</wsdl:operation>

After:

�/span>

<wsdl:portType name="CatalogWebServiceSoap">

<wsdl:operation name="GetServiceVersion">

<wsdl:input message="tns:GetServiceVersionSoapIn" wsa:Action="http://VivaOMengo/CatalogWebService/CatalogWebServiceSoap/GetServiceVersion" />

<wsdl:output message="tns:GetServiceVersionSoapOut" wsa:Action="http://VivaOMengo/CatalogWebService/CatalogWebServiceSoap/GetServiceVersionResponse" />

</wsdl:operation>

I don't need anything else from WS-Addressing. Just this one attribute in the WSDL.

I was looking into attributes but I didn't find any. I was also looking into ways to customize the WSDL generation in ASP.NET but I didn't find anything.

Is it possible? If so, how?

thanks,

  • Moved byPiyush - MSFT Tuesday, September 22, 2009 11:07 PMnot related to WCF and related to ASMX (From:Windows Communication Foundation)
  •  
Gustavo Frederico
Please post this question on the ASMX forum: http://social.msdn.microsoft.com/Forums/en-US/asmxandxml/threads.
Carlos Figueira

You can use google to search for other answers

Custom Search

More Threads

• Avoid initial request delay in web service
• Xbox Live Web Service
• MTOM taking more time than base64 method
• Problem accessing Web Service from SharePoint Web Part
• https "The page cannot be displayed"
• serialization with interface objects
• MSDiscoCodeGenerator error
• Formatting the xml data of a webservice
• WSE30 MTOM/XOP vs. MTOM
• Help: C# error CS0161 not all code paths return a value