将WSDL转换为XML工具?

前端之家收集整理的这篇文章主要介绍了将WSDL转换为XML工具?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有谁知道将WSDL转换为 XML的工具/程序?

基本上我只想要一个空的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>

猜你在找的XML相关文章