有谁知道将WSDL转换为 XML的工具/程序? 基本上我只想要一个空的XML模板.获取模板后,我可以使用数据填充节点. 您可以提取XML请求/响应 templates from the WSDL using SoapUI. SoapUI实际上对Web服务
基本上我只想要一个空的XML模板.获取模板后,我可以使用数据填充节点.
您可以提取XML请求/响应 templates from the WSDL using SoapUI.SoapUI实际上对Web服务模拟,单元测试等很多东西很有用.它是一个很棒的工具.
以下是它们在以下一个示例中为操作生成的内容:http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET/">
<soapenv:Header/>
<soapenv:Body>
<web:ConversionRate>
<web:FromCurrency>?</web:FromCurrency>
<web:ToCurrency>?</web:ToCurrency>
</web:ConversionRate>
</soapenv:Body>
</soapenv:Envelope>
和
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:web="http://www.webserviceX.NET/">
<soap:Header/>
<soap:Body>
<web:ConversionRateResponse>
<web:ConversionRateResult>?</web:ConversionRateResult>
</web:ConversionRateResponse>
</soap:Body>
</soap:Envelope>
