在 PHP 中创建 SOAP 消息的工具


Tool to creating SOAP message in PHP

是在PHP中创建SOAP请求/响应的任何工具。

我传递 WSDL 文档,并收到基于此文档的示例 SOAP 消息(如在 soapUI 中),例如:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:ns1="urn:flickr" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
....

在 SoapUI 中导入 WSDL 后,将自动获得 SOAP Web 服务的 requet xml。对于 REST Web 服务,我们使用 XSD 来生成请求 XML。对于从XSD生成xml,您可以使用Eclipse。