04
Dynamically assign web service endpoint urls
Posted by | Posted in Websphere Process Server / Integration Developer | Posted on 04-03-2009
Tagged Under : WebSphere, WebSphere Integration Developer, WebSphere Process Server, WID, WPS
Dynamically assign web service endpoint urls
How do we assign an end point URL dynamically to a web service in WebSphere Process Server? Or how do we change the endpoint URL of the web service. If any our business process invokes an external web service, we may need to change the web service URLs for different environments. For e.g.: for DEV WPS server we will have one web service end point URL where for PROD there will be a different one. So in this case we should be able to set the endpoint urls dynamically depending on the environment so that we do not need to change our EAR file for each environment.
To assign a dynamic end point url for an external web service we have two different ways. One needs some administrative effort and one needs some programmatic effect.
To change the endpoint url from the admin console follow the below steps.
1. Login to your admin console
2. Click on Applications -> SCA Modules from the left hand Menu

3. This will list all the SCA Modules installed in your server.

4. Now click on your module.

5. Now from Module components click on Imports. It will display all the imports present in your module. Expand the import for which you want to change the end point url. Once expanded, expand Binding which will display your service.

6. Now click on the web service import.

7. Enter the new endpoint url and click on Apply and OK.
I will blog about the second way of assigning a dynamic end point url for a webservice import in the next post.






