title: Apache Camel Route to SOAP API
body: <p>I'm trying to post some xml data to a SOAP API through Apache Camel. Please see the Camel route below.What I'm trying here is to read an xml file in <em>C:/input</em> and send its content to a SOAP API hosted at my Tomcat (localhost:8080/myservice/soapws).
  Is it possible to use Camel's HTTP component here?
  Is there any other component in Camel that can be used for routing to SOAP API. I'm new to Camel. Please help</p>
  
  <p>Following is my xsd for the SOAP API</p>
  
  <pre><code>&lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"&gt;
  
      &lt;xs:element name="soapRequest"&gt;
          &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;
                  &lt;xs:element name="payloadXml" type="xs:string"/&gt;
              &lt;/xs:sequence&gt;
          &lt;/xs:complexType&gt;
      &lt;/xs:element&gt;  
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>Also the Camel route I defined is as follows</p>
  
  <pre><code>public class MyCamelRouter extends RouteBuilder {
  
  @Override
  public void configure() throws Exception {
      from("file:C:/input")
          .to("http:localhost:8080/myservice/soapws"));
  }
  </code></pre>