title: Spring Integration call Web service
body: <p>I'm still new to Spring Integration and I've few question.</p>
  
  <p>I have a service with WSDL deploy in tomcat server.</p>
  
  <p>and I would like to send parameter from my spring integration flow to that service and receive 
  response back to do next things in the flow. </p>
  
  <p>I should use outbound WS gateway to do this right? 
  and how to config the xml to do this?</p>
  
  <p>i've try temperature example but still don't understand it.</p>
  
  <p>thank you.</p>
  
  <p>///////////////////////////////////////////////////////////////</p>
  
  <p>Here is my config:</p>
  
  <pre><code>     &lt;int:gateway service-interface="com.app.service.IRequester" id="IRequester"
      default-request-channel="requestChannel"  
      default-reply-channel="responseChannel"
      error-channel="errorChannel" &gt;
   &lt;/int:gateway&gt;
  
   &lt;int:service-activator input-channel="requestChannel" id="bu1"
       ref="BU1" method="bu1Method"
       output-channel="buChannel"&gt;
  &lt;/int:service-activator&gt;
  
   &lt;int:service-activator input-channel="errorChannel" 
        ref="handlerError" method="errorReturnToGateway"
        output-channel="responseChannel" &gt;
    &lt;/int:service-activator&gt;
  
   &lt;int:router id="routingChannel" input-channel="buChannel" ref="RoutingChannel"     method="routingChannel"&gt;
       &lt;int:mapping value="firstChannel" channel="channelFirst" /&gt;
       &lt;int:mapping value="otherChannel" channel="channelOther" /&gt;
   &lt;/int:router&gt;
  
   &lt;int:service-activator id="firstBU" input-channel="channelFirst"
          ref="FirstBU" method="doSomething" output-channel="responseChannel"&gt;
   &lt;/int:service-activator&gt;
   &lt;int:service-activator id="otherBU" input-channel="channelOther"
          ref="OtherBU" method="doSomething" output-channel="responseChannel"&gt;
   &lt;/int:service-activator&gt;
  </code></pre>
  
  <p>I need to change output channel from both firstBU and otherBU activator to call web service  which is send a paremeter to that service(paremeter type is Hashmap) and  receive same type response. </p>
  
  <p>I don't know how to call web service by using ws:outbound-gateway.Since I have only known to call web service using java way by generate client java class and may be i'll call service in method doSomething.</p>
  
  <p>In my case,Do you think which way is better?
  And I still want to know how to solve this by use ws:outbound-gateway too.</p>
  
  <p>thank you.  </p>