ASP.NET Web API interface (WSDL)

前端 未结 4 1664
天涯浪人
天涯浪人 2021-01-11 11:47

I have get some information about ASP Web API. It is look like good stuff for web services but how to create something like WSDL for my API like WCF service does ? how 3d pa

4条回答
  •  旧巷少年郎
    2021-01-11 12:21

    ServiceStack is a good alternative which includes built-in support for SOAP which automatically generates WSDLs, XSDs and Schema Descriptions from your Service Definitions, available from your auto-generated Metadata Pages.

    Add ServiceStack Reference

    ServiceStack also offers a better alternative to WCF's Add Service Reference which can generate a typed API from just a URL using Add ServiceStack Reference.

    Advantages over WCF

    • Simple Uses a small T4 template to save generated POCO Types. Updating as easy as re-running T4 template
    • Versatile Clean DTOs works in all JSON, XML, JSV, MsgPack and ProtoBuf generic service clients
    • Reusable Generated DTO's are not coupled to any endpoint or format. Defaults are both partial and virtual for maximum re-use
    • Resilient Messaging-based services offer a number of advantages over RPC Services
    • Flexible DTO generation is customizable, Server and Clients can override built-in defaults
    • Integrated Rich Service metadata annotated on DTO's, Internal Services are excluded when accessed externally

提交回复
热议问题