IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Change Target URL of a consumer webservice

  • 1.  Change Target URL of a consumer webservice

    Posted Tue December 13, 2011 11:17 AM

    Hi,

    I have created a consumer webservice by importing a WSDL. Earlier the webservice URL had a host name of say HOSTABC
    Now I want to change the Endpoint URL to HOSTXYZ.

    Where can I do this change so that I can test the WS with the new host name?

    Regards,
    Shabarish


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Change Target URL of a consumer webservice

    Posted Tue December 13, 2011 12:55 PM

    I am not sure if I have put the question right since i havnt received any response yet :slight_smile:

    Lets say the WSDL has the endpoint URL / target URL /SOAP address as http://HOSTABC:8080/MyService

    Now I have imported this WSDL and successfully tested it.
    After this, I need to now test the same service hosted in another server HOSTXYZ. So where can I change the end point to http://HOSTXYZ:8080/MyService


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Change Target URL of a consumer webservice

    Posted Tue December 13, 2011 03:47 PM

    For Changing Endpoint of a WebService you need create a webservice alias on IS Admin Console.
    Once Alias is created you need to select that Alias on WebService Consumer in Binder Tab.
    As a result your connection information will be now controlled by WebService Alias instead of the address present in wsdl.
    When your Server/ User credentials are changed just update them in Admin console.


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Change Target URL of a consumer webservice

    Posted Wed December 14, 2011 03:35 AM


  • 5.  RE: Change Target URL of a consumer webservice

    Posted Wed December 21, 2011 10:06 PM

    You can also change the endpoint URL by passing in the parameter _url into your webservice call through the flow code.


    #webMethods
    #Integration-Server-and-ESB