Tuesday, March 6, 2012

How to call a Web Service from the Vordel Gateway

Let's say you've created a SOAP message in the Vordel Gateway, perhaps based on an incoming REST request. And now you want to send this SOAP request to a Web Service. Here is how to do this:

First add a 'Set HTTP Verb' filter to the end of your circuit, and configure this filter to set the verb to 'POST' (this is in case the incoming is a GET, which it will usually be in the case of REST, but the SOAP service expects a POST). Then follow this filter with a 'Connect to URL' filter, and configure it with the full URL of your SOAP service (eg http://server.myorg.com/soap/myservice).

What if you want to call out to a Web Service "off to the side" then use the response from this to call another service? Here is how to do that: http://www.soatothecloud.com/2011/12/how-to-call-web-service-or-api-off-to.html