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:

A screen capture of the HTTPHeader Node Single Request message flow

How the flow works:

  1. An MQInput node (GetMessage) receives an XML message from a WebSphere MQ queue.
  2. The HTTPHeader node (AddSOAPAction) adds an HTTPRequest header, SOAPAction, with the value http://localhost:7080/ConvertTemp
  3. The message is passed through an HTTPRequest node (InvokeWebService) that is configured to request the Web service http://localhost:7080/ConvertTemp.WS
  4. The message is sent to the message flow that provides the Web service.
  5. An HTTPInput node (ConvertTempWS) receives the request.
  6. 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.
  7. An HTTPReply node (ReplyResult) sends the result back to the WebSphere MQ flow.
  8. An HTTPHeader node (RemoveHTTPHeaders) removes the HTTPRequest and HTTPResponse headers.
  9. An MQHeader node (AddMQHeader) adds WebSphere MQ headers to the message so that the message can be stored on a queue.
  10. An MQOutput node (SaveResult) puts the message on a queue.

Back to Read about the HTTPHeader node sample

Back to sample home