How to make WSDL URL dynamic in Web Service Proxy Project and Datawindow.
we are facing an extra step of building and deploying web service proxy and library when deploying application from test environment to production! This was mainly due to the fact that we are directly mapping the WSDL URL in web service proxy project. Also, we are using Datawindow with web service as datasource.WSDL has been modified here too in datawindow source during deployment to production.
WSDL URL is different for test and prod environment.
This mainly causes redeployment of proxies and library before deployment on to user's machine!!
Is there a way to dynamically map WSDL in web service proxy project and datawindow based on database server it connects to? If yes, does that correctly deploy proxies on to library?
Version : Powerbuilder 11.5.1
Any help would be greatly appreciated!!
Bruce Armstrong replied
When you do the CreateInstance for the web service proxy you can pass in the endpoint to make that dynamic.
For a web service based datawindow, you can use the WebServiceConnection object to configure the endpoint dynamically.
That should be the only difference between your development and production environments. The methods and data types of the service should not be different. If they are, your problem is with the development environment, not the tool.