Programmatically create WSDL from metadata
How can I override the way ASP.NET c开发者_开发技巧reates a WSDL file for my Web Serive from my WebMethod
s' metadata?
You cannot control this very much. You can control the shape of the XML request and response by using attributes like [XmlElementAttribute]
. You can control the name and namespace of the request and response with the [WebMethod]
attribute.
What are you trying to accomplish?
Mark your class with the attribute [XmlSchemaProvider]
as shown here.
精彩评论