Overridding a Web Services Endpoint at Runtime in WebSphere ESB 6.0.1
November 21, 2006 8 Comments
Let’s say that you’ve developed a mediation module for WebSphere ESB 6.0.1 that contains a Web Services import (SOAP/HTTP). You’ve exported it from WebSphere Integration Developer (WID) as a .ear, but you realise, after deploying your application onto your runtime server, that you need it to point at a different Web Services endpoint (perhaps a different server). Here’s how you change it:
- Go to the administrative console for your server.
- Select ‘Applications/Enterprise Applications’.
- Select the application (mediation module) that contains the import in question.
- Select ‘EJB Modules’.
- Select the EJB module from the list (there will be only one).
- Select ‘Web services client bindings’.
- Under ‘Port Information’, click ‘Edit…’.
- In the ‘Overridden Endpoint URL’ box, you should see the current endpoint – as defined in WID. Change that to the URL you want, click OK, save your changes and restart your server.
Good stuff! it works. Thanks a lot. the exact information I am looking for.
No need to restart the server. I don’t remember if I restart the mediation application.
Is there any way to change end point url without restarting the server in version 6.0.2
yup great information it works without restarting.
How can we change this endpoint url dynamically,without changing the URL in WID or Admin Console??
Rohan,
You can use the Dynamic Endpoint Support. Here’s a lab that’ll walk you through an example of how to do this:
Click to access WPIv61_ESB_DynamicEndpointsLab.pdf
Thanks,
Andrew.
Hi Andrew –
I am trying to use the WS-Addressing schema as a pre-defined resource in my SCA module to dynamically access the Address of a webservice that is running in an external server. I followed a sample given in – section Dynamic Service Binding of the following link
http://publib.boulder.ibm.com/bpcsamp/v6r2/index.html
This works fine , when I publish it in WID as a PI . When I export it as a .ear file , I get an exception on the run time WPS 6.2.0.2 that –
ejbModule/sca/webservice/client/LookupServiceImport.java(12): Syntax error, annotations are only available if source level is 5.0
The build version in my WID is JDK 1.5 . Can you help me understand which other setting must I perform , in order to get this working even on a run -time WPS server ?
Hi, Sadhana
I have same issue. Do yoy resolve issue?
Hi, Sadhana
I have same issue. Do you resolve issue?