This content has been marked as final.
Show 3 replies
-
-
2. Re: Choose web service dynamically
mageshbk Feb 24, 2012 8:41 AM (in response to stsc)You could use a CBR (Content Based Routing) mechanism. Have a look at fun_cbr quickstart. You could make each of the team a SOAPClient.
-
3. Re: Choose web service dynamically
raghav.vis Mar 8, 2012 5:36 AM (in response to stsc)Hello Steffen,
This is possible in two ways:
- Create a Content Based Router as suggested by Magesh. You can configure SOAP CLIENTS for all the Service providers as seperate services.
- You would also have a condition based on which you would choose the endpoint. configure this condition in the Content Based Router.
- Now you have two options: Either
- to use Drools
- Xpath condition to point to the location of the element in the message object.
- Now you have two options: Either
- Now what happens is, when the execution reaches the CBR, the service is automatically picked up based on the condition
- The Second way to do would be use a default WSDL URL and Override the WSDL location by accessing the config tree object. This helps you to handle the WSDL location to be invoked in a more dynamic way.
Hope you have the list of the endpoints(WSDL) in a store or a property file.
Hope this helps. Let me know if you are finding it difficult to follow the above.
Regards,
Raghav.V