Overridding a Web Services Endpoint at Runtime in WebSphere ESB 6.0.1

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:

  1. Go to the administrative console for your server.
  2. Select ‘Applications/Enterprise Applications’.
  3. Select the application (mediation module) that contains the import in question.
  4. Select ‘EJB Modules’.
  5. Select the EJB module from the list (there will be only one).
  6. Select ‘Web services client bindings’.
  7. Under ‘Port Information’, click ‘Edit…’.
  8. 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.

8 Responses to Overridding a Web Services Endpoint at Runtime in WebSphere ESB 6.0.1

  1. Eric says:

    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.

  2. priya says:

    Is there any way to change end point url without restarting the server in version 6.0.2

  3. priya says:

    yup great information it works without restarting.

  4. Rohan says:

    How can we change this endpoint url dynamically,without changing the URL in WID or Admin Console??

  5. 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.

    • Sadhana says:

      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 ?

Leave a comment