8 Replies Latest reply on Jan 8, 2015 12:52 PM by Los Morales

    soapaction header

    Los Morales Newbie



      I'm running into an issue where the soapaction header is not being passed to a soap-based Web service.  The error message returned is this:


      <SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">soap:Client</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: .


      I would assume SY would automatically add the header since it was defined in the WSDL like this:


      <wsdl:binding name="StockQuoteSoap" type="tns:StockQuoteSoap">

          <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>

          <wsdl:operation name="GetQuote">

            <soap:operation soapAction="http://www.webserviceX.NET/GetQuote" style="document"/>


              <soap:body use="literal"/>



              <soap:body use="literal"/>






      So what I did was to explicitly add it via a post processor defined in the camel route like this:


      exchange.getOut().getHeaders().put("SOAPAction", "http://www.webserviceX.NET/GetQuote");


      That didn't work either.  Any ideas?