Skip to content

tutorial request reply

Raymond Meester edited this page Sep 16, 2024 · 16 revisions

In this tutorial you learn how to create a request/reply flow.

We start with the flow created in the Quick Start.

Step 1: Clone flow

  • Like in tutorial1 clone the 'TestFlow'.

CloneFlow

Step 2: Configure the flow

  • Give the flow the name “Calculator”.
  • Choose “Add” --> “Action” from the Source step.
  • Set the component of the Action to “setheader”.
  • Set the path to “Content-Type”.
  • Add the option: value : “text/xml”.

SetHeaderEndpoint

  • Choose “Add” --> “Action” from the already configured Action.
  • Set the component of the Action to “http”.
  • Set the path to “www.dneonline.com/calculator.asmx”.
  • Set the option Http Method to “POST”.

HTTPEndpoint

After the changes, save the flow.

Step 3: Test the flow

  • Create a file “calculator.xml”. The file should have the following content:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:Add>
         <tem:intA>2</tem:intA>
         <tem:intB>2</tem:intB>
      </tem:Add>
   </soapenv:Body>
</soapenv:Envelope>
  • Save the file “calculator.xml” in the directory: “C:\messages\in”.
  • Start the flow 'Calculator'.

You should now see the reply message in “C:\messages\out”. In the file you get the answer of the calculation (In case you didn't know already :))


Now you completed this tutorial. You can continue to the next tutorial with an example of message queuing.

Clone this wiki locally