Wednesday, March 13, 2013

OSB : Dynamically Change the end point for Business Service

There could be a requirement to change the endpoints dynamically while invoking external service from  OSB.

This can be achieved by injecting the endpoint just before the service invocation.

Configure the endpoints in an .xq file as shown



Assign the content of xq file to a variable



In the message flow add an xpath expression and assign the target endpoint value to a variable



In the service-callout/publish/routing RequestAction block , add a Routing Option and update the URI using the above created variable






No comments:

Post a Comment