title: Adding soap:encodingStyle attribute to soap:body while using cxf:jaxws-client
body: <p>I am accessing a rpc/literal style webservice from my flow in mule.</p>
  
  <p>The binding part of the wsdl looks like below :</p>
  
  <pre><code>&lt;binding name="AppWebServiceBinding" type="interface:AppWebService"&gt;
      &lt;soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"   /&gt;
      &lt;operation name="submitApplication"&gt;
          &lt;soap:operation soapAction="" style="rpc"  /&gt;
          &lt;input name="submitApplicationRequest"  &gt;
              &lt;soap:body
                  encodingStyle="http://xml.apache.org/xml-soap/literalxml"
                  namespace="http://tempuri.org/fsg.ejb.webservice.AppWebService"
                  parts="ele" use="literal" type="soap:tBody"  /&gt;
          &lt;/input&gt;
          &lt;output name="submitApplicationResponse"&gt;
              &lt;soap:body
                  encodingStyle="http://xml.apache.org/xml-soap/literalxml"
                  namespace="http://tempuri.org/fsg.ejb.webservice.AppWebService" use="literal"/&gt;
          &lt;/output&gt;
      &lt;/operation&gt;
  &lt;/binding&gt;
  </code></pre>
  
  <p>Then I am passing expectedobject to the http:outbound with cxf:jaxws-client</p>
  
  <pre><code>    &lt;http:outbound-endpoint exchange-pattern="request-response"
          address="http://serviceapp:9080/service_war/servlet/rpcrouter"   
          doc:name="Generic"&gt;
          &lt;cxf:jaxws-client clientClass="com.fsg.generated.AppWebServiceService"
              wsdlLocation="com/fsg/generated/AppWebServiceService.wsdl"              
              operation="submitApplication"   port="AppWebServicePort"                 
              doc:name="SOAP"&gt;                
              &lt;cxf:inInterceptors  &gt;
              &lt;spring:bean id="inLogger" 
                  class="org.apache.cxf.interceptor.LoggingInInterceptor" /&gt;                  
              &lt;/cxf:inInterceptors&gt;
              &lt;cxf:outInterceptors&gt;
              &lt;spring:bean id="outLogger"
                  class="org.apache.cxf.interceptor.LoggingOutInterceptor" /&gt;
          &lt;/cxf:outInterceptors&gt;              
          &lt;/cxf:jaxws-client&gt;
      &lt;/http:outbound-endpoint&gt;
  </code></pre>
  
  <p>But when I look into the logs to see the message being sent to the outbound I don't see the soap:encodingStyle attribute in that. This is causing the problem as the service cannot process the message without this.</p>
  
  <p>Given below is the outbound message I could see in the log.</p>
  
  <pre><code>    Outbound Message
  ---------------------------
  ID: 1
  Address: http://serviceapp:9080/service_war/servlet/rpcrouter
  Encoding: UTF-8
  Content-Type: text/xml
  Headers: {SOAPAction=[""]}
  Payload: &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;soap:Header&gt;
  &lt;mule:header xmlns:mule="http://www.muleumo.org/providers/soap/1.0"&gt;
  &lt;mule:MULE_CORRELATION_ID&gt;dfd31e6c-6575-11e2-9b8a-b1b06bd39882&lt;/mule:MULE_CORRELATION_ID&gt;   &lt;mule:MULE_CORRELATION_GROUP_SIZE&gt;-1&lt;/mule:MULE_CORRELATION_GROUP_SIZE&gt;
  &lt;mule:MULE_CORRELATION_SEQUENCE&gt;-1&lt;/mule:MULE_CORRELATION_SEQUENCE&gt;
  &lt;/mule:header&gt;
  &lt;/soap:Header&gt;
  &lt;soap:Body&gt;
  &lt;ns1:submitApplication xmlns:ns1="http://tempuri.org/fsg.ejb.webservice.AppWebService"&gt;
  &lt;ele&gt;
  &lt;MyApp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mysample.org"&gt;  
    &lt;UserAuth&gt;  ............
  </code></pre>
  
  <p>It can be seen that the namespace is picked from the wsdl but not the encodingStyle.</p>
  
  <p>Expected output is </p>
  
  <pre><code>&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;soap:Header&gt;
  &lt;mule:header xmlns:mule="http://www.muleumo.org/providers/soap/1.0"&gt;
  .......
  &lt;/mule:header&gt;
  &lt;/soap:Header&gt;
  &lt;soap:Body&gt;
  &lt;ns1:submitApplication xmlns:ns1="http://tempuri.org/fsg.ejb.webservice.AppWebService"  soap:encodingStyle="http://xml.apache.org/xml-soap/literalxml" &gt;
  &lt;ele&gt;
  &lt;MyApp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mysample.org"&gt;  
    &lt;UserAuth&gt;  ............
  </code></pre>
  
  <p>How can I set the soap:encodingStyle attribute in this?</p>