webMethods

webMethods

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
  • 1.  Create Dynamic Webservice Connection

    Posted Tue June 03, 2008 10:08 PM

    Can we create a connection to a webservice dynamically from a flow by passing in the URL of the webservice?


    #API-Management
    #webMethods
    #soa


  • 2.  RE: Create Dynamic Webservice Connection

    Posted Tue June 03, 2008 10:15 PM

    Are you attempting to generate web service connector on the fly? If so, can you expand on what you are trying to accomplish?

    Mark


    #webMethods
    #API-Management
    #soa


  • 3.  RE: Create Dynamic Webservice Connection

    Posted Tue June 03, 2008 10:24 PM

    Yes.
    Our Application Dev Team has developed a webservice which will be deployed on different boxes for different env like DEV, UAT and Prod.

    I need to create a connection to the webservice based on the IP Address where it is deployed.

    So , I was wondering if I could create this connection based on some input parameters and send a SOAP request.

    Please let me know if you need any further information

    Thanks


    #soa
    #API-Management
    #webMethods


  • 4.  RE: Create Dynamic Webservice Connection

    Posted Tue June 03, 2008 10:42 PM

    The URL and credentials should always be retrieved from external configuration or properties files. This is a best practice regardless of whether it is a web service, FTP service or HTTP post.

    Mark


    #soa
    #webMethods
    #API-Management


  • 5.  RE: Create Dynamic Webservice Connection

    Posted Tue June 03, 2008 10:51 PM

    Agreed and I am concluding that we can create the connector dynamically.

    Is that correct? If yes, how? This is my first time dealing with webservices from webMethods.

    Thanks


    #API-Management
    #webMethods
    #soa


  • 6.  RE: Create Dynamic Webservice Connection

    Posted Tue June 03, 2008 11:11 PM

    A “connector” is a Flow service with hardcoded Soap endpoint URLs generated from a WSDL. The web services connector wizard generates this code from the WSDL that you supply.

    You don’t need to do this dynamically. You just want to modify the generated code or, better yet, just use the generated code as a starting point or model and create your own Flow that accepts variables for the things you want to parametrize.

    There are many posts here on how to use properties files or other config files and several in the SOA Development forum on the frailties inheirent in the Flow generated by the web services connector.

    It is beyond the scope of this reply to provide details on how to use Flow to pass values into a called Flow or java service.

    Mark


    #soa
    #webMethods
    #API-Management


  • 7.  RE: Create Dynamic Webservice Connection

    Posted Wed June 04, 2008 04:11 PM

    Thanks Mark! I will try that.

    Dhara


    #webMethods
    #soa
    #API-Management