About the Single WebService in MQ flow sample
This sample shows how you can use an HTTPHeader node to call a Web service in a WebSphere MQ flow.
The following message flow is imported by the sample:

How the flow works:
- An MQInput node (GetMessage) receives an XML message from a WebSphere MQ
queue.
- The HTTPHeader node (AddSOAPAction) adds an HTTPRequest header,
SOAPAction, with the value http://localhost:7080/ConvertTemp
- The message is passed through an HTTPRequest node (InvokeWebService)
that is configured to request the Web service
http://localhost:7080/ConvertTemp.WS
- The message is sent to the message flow that provides the Web service.
- An HTTPInput node (ConvertTempWS) receives the request.
- The request is passed to a JavaCompute node (ConvertTemp), which
converts the input value from the specified unit, Celsius or Fahrenheit, to the desired
unit.
- An HTTPReply node (ReplyResult) sends the result back to the
WebSphere MQ flow.
- An HTTPHeader node (RemoveHTTPHeaders) removes the HTTPRequest and HTTPResponse headers.
- An MQHeader node (AddMQHeader) adds WebSphere MQ headers to
the message so that the message can be stored on a queue.
- An MQOutput node (SaveResult) puts the message on a queue.
Back to Read about the HTTPHeader node sample
Back to sample home