Integration node calls existing web service
In this scenario, the integration node calls an existing web service implementation. The WSDL for the web service already exists, and is imported to create a message set.
A message flow based on this message set sends a web service request
and receives the response, for example by using a SOAPRequest node.

Key to symbols:

Possible uses
- You want to call a web service to do some processing as part of your message flow.
- You have an existing web service and you want to provide a different interface to it. This could be an alternative web services interface or a IBM® MQ interface.
- You have an existing web service and you want to change its implementation in some way without changing its interface; that is, the integration node acts as an intermediary to the web service. For instance a message flow could be used to enable auditing, or to transparently propagate the web service response to another application.
Design steps
- Import WSDL to create a message set containing definitions for the SOAP messages described by the WSDL.
- Create a message flow to invoke the web service. If the SOAP domain is used, the message flow uses a SOAPRequest node, SOAPAsyncRequest node, or a SOAPAsyncResponse node. The nodes are configured by using the WSDL imported in Step 1. If required, you can create a skeleton flow from scratch by dropping the WSDL onto a blank message flow editor canvas. If you use the SOAP domain, you must create the message flow by using transport nodes, and an XML or MIME domain. For example, if the WSDL binding specifies HTTP transport, and the request message is SOAP, you can use an HTTPRequest node with the XMLNSC domain. You can then configure the node manually with the endpoint information for the web service.
- Build a BAR file for deployment. The BAR file contains your message flow and the message set that contains the imported WSDL. The SOAP domain always requires the WSDL to be deployed, because messages are verified against it at run time; also WSDL information is included in the logical tree. The message set includes XML Schema definitions that can be used for message validation in the SOAP, XMLNSC, or MRM domains.
At run time
Your message flow creates an appropriately formatted web service request, invokes the web service, and parses the web service response. If you use the SOAP domain, your message flow uses the SOAP logical tree model. If you do not use the SOAP domain, your message flow uses the logical tree for your selected domain; for example, you use the MIME domain if your web service messages use SOAP with Attachments.
Example 1
Example 2
Using the SOAP domain for these scenarios is preferred. For more information about choosing a domain for web services, see IBM Integration Bus and web services.