Changing Endpoint URL for a Web Service Data Control

Posted by vishal.s.jain(at)oracle.com on Oracle Blogs See other posts from Oracle Blogs or by vishal.s.jain(at)oracle.com
Published on Fri, 11 Feb 2011 15:26:13 +0530 Indexed on 2011/02/11 15:30 UTC
Read the original article Hit count: 733

Filed under:
|
When you move your application from Development to Production, there is more often then not, a need to change the web service endpoint URL in your ADF application. If you are using a Web Service Data Control(WSDC), you can do this in more than one ways. The following example illustrates how this can be done.

At Design Time

If the application workspace is in your control, you can quickly do this by updating the definition in DataControl.dcx file:

WSDCdcx.jpg

Along with this, you will also need to change the endpoint in connections.xml. So invoke the Edit Connections dialog:

WSDCinvokeConnDialog.jpg 

Then, change the endpoint URL.

WSDCChangeInConnDialog.jpg

At Deployment

Another way to change is changing the endpoint at the ear level, at deployment. So when you select Deploy -> Application Server at the Application level, it will bring up a Deployment Configuration dialog, in which you can edit the WSDL URL:

WSDCEditConnAtDeploy.jpg

Also, change the Port URL:

WSDCEditConnPortAtDeploy.jpg

At Post Deployment

If your need to change this post deployment, you can do it through Oracle Enterprise Manager. But for this, your application needs to be configured with a writable MDS repository. It is recommended you use a Database MDS store during deployment.
So have your application configured (by having an entry in adf-config.xml) and server configured (by having a MDS store registered). Once done, you can configure the ADF Connection in EM for this application:

WSDCConfigAtEM.jpg

Change the WSDL location here on 'Edit':




WSDCEditConnAtEM.jpg

Also, change the Port using Advance Connection Configuration:

WSDCEditAdvConnAtEM.jpg

Change the Endpoint Address here:

WSDCEditAdvConnAtEMPort.jpg

Apply Changes and you are done!

© Oracle Blogs or respective owner

Related posts about adf

Related posts about webservices