开发者

Convert WSDL to XML Tool?

开发者 https://www.devze.com 2023-02-12 17:12 出处:网络
Does anyone know of a tool / program to convert a WSDL to XML? Basically I just want an empty XML template. I can populate the nod开发者_StackOverflowes with data after I get the template.You can ext

Does anyone know of a tool / program to convert a WSDL to XML?

Basically I just want an empty XML template. I can populate the nod开发者_StackOverflowes with data after I get the template.


You can extract XML request/response templates from the WSDL using SoapUI.

SoapUI is actually useful at a lot of things like web service mocking, unit testing etc. It is a great tool.

Here is what it generates for an operation in one of their examples at: 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>

and

<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>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号