title: Can i send xml payload as a string to soap web service
body: <p>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 (<code>http://stackoverflow.com/questions/15948927/working-soap-client-example</code>) ?</p>
  
  <p>E.g., </p>
  
  <pre><code>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
  
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;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/"&gt;
    &lt;soap:Body&gt;
      &lt;ConversionRate xmlns="http://www.webserviceX.NET/"&gt;
        &lt;FromCurrency&gt;USD&lt;/FromCurrency&gt;
        &lt;ToCurrency&gt;GBP&lt;/ToCurrency&gt;
      &lt;/ConversionRate&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>