Webmethods IS: Can Webmethods IS call multiple request from XML parameter/attribute from 1 response message

147 Views Asked by At

I am new in SAG Webmethod.

I have one scenario where I want that SAG Webmethods IS call one web service. The request returns back XML response. In the xml response, there is one parameter/attribute which I want to use to make call to another webservice.

My question here is, the first web service call is stateless ( closing the connection as soon as I am getting the response). Now, I am reading the xml response and if the respective attribute is found, then I am asking Webmethod to call another stateless Webservice.

Is this scenario available in webmethods and can this be achieved.

Thanks

1

There are 1 best solutions below

2
swapcode On

Yes, This can be absolutely achieved in wM.

  1. Make a call to first webservice
  2. store the result in cache or simply map the result in document
  3. add Branch step and check desired parameter/attribute value
  4. if found then make the call to another webservice P.S. Please make sure you add try catch block with proper retry conditions to handle the intermediate errors from webservics and to maintain the session if you want.