Skip to Content
avatar image
Former Member

How to make WSDL URL dynamic in Web Service Proxy Project and Datawindow.

Hi,

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!!

Thanks,

Sheik

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Feb 23, 2013 at 05:04 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 23, 2013 at 05:16 PM

    I am not sure what you mean by mapping WSDL...

    You can set/modify the endpoint (URL) of the web service in your code during runtime.

    Tip: Check the PowerBuilder Help for the keyword "endpoint"

    For web service

    conn.CreateInstance (lws_proxy, "ws_proxy_class" ,ls_endpoint )

    For datawindows...

    ...

    ws_1.endpoint = "myendpoint"

    ..

    dw_1.setwsobject (ws_1)

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 11, 2013 at 01:17 PM

    Hi, Thank you all for your support on this particular thread. Endpints for both web service proxy project and data window source has been dynamically modified.

    Add comment
    10|10000 characters needed characters exceeded