【发布时间】:2020-02-28 22:50:19
【问题描述】:
这是一个示例 wsdl:http://www.dneonline.com/calculator.asmx?wsdl,这是一个在 SOAPUI 中生成的示例请求:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:Add>
<tem:intA>?</tem:intA>
<tem:intB>?</tem:intB>
</tem:Add>
</soapenv:Body>
</soapenv:Envelope>
我知道有一些工具,比如 SOAPUI 和其他可以从 wsdl 自动生成示例 XML 调用的工具。但是,在使用 wsimport 导入 wsdl 客户端后,有没有办法在 JAVA 中生成示例请求?
【问题讨论】:
标签: java xml soap wsdl wsimport