I am new to spring integration and spring boot. And, my use case is to poll for a message in a JMS queue and call another web service by using the message payload XML coming from JMS queue. The XML payload contains the SOAP envelope,body and SAML headers.

I can hit the web service with the XML payload using SOAP UI tool.

This is my spring integration configuration file.

====================================================

```
<beans:beans xmlns="http://www.springframework.org/schema/integration"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:beans="http://www.springframework.org/schema/beans"
    xmlns:int="http://www.springframework.org/schema/integration"
    xmlns:http="http://www.springframework.org/schema/integration/http"
    xmlns:jms="http://www.springframework.org/schema/integration/jms"
    xmlns:ws="http://www.springframework.org/schema/integration/ws"
    xmlns:stream="http://www.springframework.org/schema/integration/stream"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans.xsd
            http://www.springframework.org/schema/integration
            http://www.springframework.org/schema/integration/spring-integration.xsd
            http://www.springframework.org/schema/integration/http 
            http://www.springframework.org/schema/integration/http/spring-integration-http.xsd
            http://www.springframework.org/schema/integration/jms
            http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd
            http://www.springframework.org/schema/integration/ws
            http://www.springframework.org/schema/integration/ws/spring-integration-ws.xsd
            http://www.springframework.org/schema/integration/stream
            http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd">
    <jms:message-driven-channel-adapter id="jmsIn"
            destination-name="requestQueue"
            channel="jmsInChannel"
            error-channel = "error-Channel" />

<channel id="error-Channel"/>
<stream:stdout-channel-adapter id="error-Channel"/>

<channel id="jmsInChannel">
    <interceptors>
        <wire-tap channel="loggerChannel"/>
    </interceptors>
</channel>

<logging-channel-adapter id="loggerChannel" level="INFO"/>

<beans:bean id="MY.SOAP-MessageSender"
  class="org.springframework.ws.transport.http.HttpComponentsMessageSender">
  <beans:property name="connectionTimeout" value="30000" />
  <beans:property name="readTimeout" value="50000" />
 </beans:bean>
    <chain input-channel="jmsInChannel" output-channel="outChannel">
        <header-enricher>
             <header name="Content-Type" value="text/xml;charset=UTF-8" />
             <header name="SOAPAction" value="soapaction"/>
        </header-enricher>
        <ws:outbound-gateway  message-sender="MY.SOAP-MessageSender" uri="http://localhost:8080/soapws-endpoint"/>
    </chain>

    <!-- The response from the service is logged to the console. -->
    <!-- <stream:stdout-channel-adapter id="outChannel"/> -->
    <channel id="outChannel">
        <interceptors>
            <wire-tap channel="loggerChannel2"/>
        </interceptors>
    </channel>
<logging-channel-adapter id="loggerChannel2" level="INFO"/> 

<beans:bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
    <!-- brokerURL, You may have different IP or port -->
    <beans:constructor-arg index="0" value="tcp://localhost:61616" />
</beans:bean>

  <!-- Spring JMS Template -->
  <beans:bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate" >

    <beans:property name="connectionFactory" ref="connectionFactory"/>

  </beans:bean>
</beans:beans>

```

=============================================================

I can see that Spring is adding extra SOAP envelope and Header to the existing XML payload (which already has the SOAP envelope and payload).

```
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/>
<SOAP-ENV:Body><soapenv:Envelope xmlns:head="http://header" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://typ">
   <soapenv:Header>
.
.
. WS security hader
     </soapenv:Header>
</soapenv:Body>
</soapenv:Envelope>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

```

**Question:**
How do I remove the extra SOAP envelope and SOAP Header that are getting added. Is there any out of the box property in the configurations that I can use. If not, Please provide a sample code that I can make use of.
Please help...Thanks in advance.