如何获取 REST API 的 WSDL?
How to get WSDL for REST API?
我正在编写 API-REST,并与 Sap 程序员一起工作。
他们需要我给他们 wsdl 文件。
甚至不知道如何开始。
有人能帮我吗?
谢谢
首先根据标准定义了解什么是WSDL
WSDL is an XML format for describing network services as a set of endpoints operating on messages containing either document-oriented or procedure-oriented information. The operations and messages are described abstractly, and then bound to a concrete network protocol and message format to define an endpoint.
所以基本上 WSDL 是您服务的元数据,它提供有关任何服务的描述。对于 运行ning 任何服务都需要三个基本组件
- 地址(url)
- 绑定(协议)
- 服务(哪个服务 运行ning 在该地址上。)
累计被称为端点。
因为 Restful 服务只使用 http(s) 协议到 运行 服务所以 restful 服务不需要太多信息只需要 restful 服务的地址enough.Hence Restful 服务中不需要元数据和 WSDL 文档。但是对于构建在 WCF 框架上的其他类型的服务(例如基于 SOAP 的服务),WSDL 文档是必要的,以便将那里的信息公开给客户端,以便客户端可以利用该 WSDL 文档根据服务自定义自身。
我正在编写 API-REST,并与 Sap 程序员一起工作。 他们需要我给他们 wsdl 文件。 甚至不知道如何开始。 有人能帮我吗? 谢谢
首先根据标准定义了解什么是WSDL
WSDL is an XML format for describing network services as a set of endpoints operating on messages containing either document-oriented or procedure-oriented information. The operations and messages are described abstractly, and then bound to a concrete network protocol and message format to define an endpoint.
所以基本上 WSDL 是您服务的元数据,它提供有关任何服务的描述。对于 运行ning 任何服务都需要三个基本组件
- 地址(url)
- 绑定(协议)
- 服务(哪个服务 运行ning 在该地址上。)
累计被称为端点。
因为 Restful 服务只使用 http(s) 协议到 运行 服务所以 restful 服务不需要太多信息只需要 restful 服务的地址enough.Hence Restful 服务中不需要元数据和 WSDL 文档。但是对于构建在 WCF 框架上的其他类型的服务(例如基于 SOAP 的服务),WSDL 文档是必要的,以便将那里的信息公开给客户端,以便客户端可以利用该 WSDL 文档根据服务自定义自身。