How to use Custom URI when invoking a Web Service using SOAP Event
book
Article ID: KB0083802
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
5.x
Description
We have a Web Service the endpoint which is different on each environment. Is there a way to define the endpoint to be invoked without placing the Channel object at the specific path inside the project?
Issue/Introduction
How to use Custom URI when invoking a Web Service using SOAP Event.
Environment
All
Resolution
While sending out an HTTP Event, instead of Event.sendEvent you can also use catalog functions under HTTP to send the request, e.g. HTTP.sendRequest() . The URL for the endpoint that will receive the request is passed by the first parameter of the function. This function can also be used to send SOAP requests. For SOAP requests, the SOAPAction will be taken from a corresponding event property, or, if the property is not present, the default destination of the request event.