我可以将xml有效负载作为字符串发送到soap Web服务吗?是否允许使用任何http客户端库(Apache HttpClient,RxNetty)或者我应该只使用SAAJ框架(http://stackoverflow.com/questions/15948927/working-soap-client-example
)?
,例如,
curl --header "Content-Type: text/xml;charset=UTF-8"
--header "SOAPAction:http://www.webserviceX.NET/ConversionRate"
--data @request3.xml http://www.webservicex.net/CurrencyConvertor.asmx
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ConversionRate xmlns="http://www.webserviceX.NET/">
<FromCurrency>USD</FromCurrency>
<ToCurrency>GBP</ToCurrency>
</ConversionRate>
</soap:Body>
</soap:Envelope>
答案 0 :(得分:1)
是的,实际上,完全有可能在您调用位于_url URI的基于SOAP的Web服务_action时会发生什么:
process' /usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in
现在您的请求,加载了您的SOAP信封已准备好加快!