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,