TMF

I need to change the WSDL result when someone add WSDL.
How can I do this


Re: ASMX Web Services and XML Serialization Change WSDL on server

Nathan Anderson - MSFT

What exactly do you need to change in the wsdl Can you give us your scenario

Thanks.





Re: ASMX Web Services and XML Serialization Change WSDL on server

Elena Kharitidi

Web Service framework has number of custom attributes allowing change the shape of the messages send/received by WebService, check out the (http://msdn2.microsoft.com/en-us/library/ms950721.aspx) for the attributes overview, also may look here: http://www.topxml.com/xmlserializer/customizing_xml_serialization.asp

the most common attributes used are XmlElementAttribute and XmlAttributeAttribute for the literal messages and SoapElement for encoded messages.

If the attributes do not provide enough functionality or flexibility, you can disable the dynamically-generated wsdl, and use static wsdl, see the [WebServiceBinding]¡¯s Location property, it allows you to provide a custom wsdl on binding-per-binding basis.

Thanks,

Elena





Re: ASMX Web Services and XML Serialization Change WSDL on server

TMF

Hi Elena,
I did what you wrote Here. No meter what I do, the ReflectionContext.ServiceDescriptions is null.

What do I do wrong