How to generate a WSDL file from a C# webservice

前端 未结 3 1136
一向
一向 2021-02-02 13:21

I\'ve created a WebService like this:

[WebService(Namespace = \"http://ns\")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class GroupMan         


        
3条回答
  •  深忆病人
    2021-02-02 14:08

    I've created a tool which can generate a WSDL file from a compiled c# assembly (dll) which contains one or more WebServices. Normally you require a running service (IIS or other) which hosts the .asmx so that you can retrieve the WSDL using /MyWebService.asmx?wsdl

    This tool generate a WSDL file using reflection to retrieve all information from an assembly (dll).

    Download can be found at https://github.com/StefH/WSDLGenerator

提交回复
热议问题