Can i send xml payload as a string to soap web service ? Is it allowed to use any http client library (Apache HttpClient, RxNetty) for the same or should i only use SAAJ framework (http://stackoverflow.com/questions/15948927/working-soap-client-example
) ?
E.g.,
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>