开发者

Programmatically create WSDL from metadata

开发者 https://www.devze.com 2023-02-15 03:17 出处:网络
How can I override the way ASP.NET c开发者_开发技巧reates a WSDL file for my Web Serive from my WebMethods\' metadata?You cannot control this very much. You can control the shape of the XML request an

How can I override the way ASP.NET c开发者_开发技巧reates a WSDL file for my Web Serive from my WebMethods' 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消