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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Change the consumer source URIs for deployment

    Posted 02/18/16 04:47 AM

    Hi,

    In my DEV environment, I have many web services based on consumers. Theses consumers are based on source URIs that contains IP of server (or server name).

    Obviously, when the web services have to be deploy, I have to automatically substitute the source URI of these ones, for the target environment.

    Where may I find theses options in the Deployer (i’ve just found Adapter JDBC substitution) ?

    What is the best practice to do it please ?

    Regards


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 2.  RE: Change the consumer source URIs for deployment

    Posted 02/18/16 06:58 AM

    Hi Cedric,

    there is no need to change these URIs.

    You can use WS-Endpoint-Aliases to point to the correct address or read the correct address from a property file.

    Regards,
    Holger


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 3.  RE: Change the consumer source URIs for deployment

    Posted 02/18/16 09:23 AM

    Yes… I second Holger. Source URIs only indicate the source from which consumer has been created. They will not be used as endpoint address at all. SOAP address under port bindings is the one that will be used as endpoint when making a call. As Holger mentioned, One can overcome this by configuring and using Webservice Consumer Alias in Integration Server Admin page or by fetching an endpoint from custom configuration properties


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Change the consumer source URIs for deployment

    Posted 02/18/16 09:24 AM

    Thanks Holger,

    I would have naively imagine that a good practice, would be to replace all the consumer source URI with global vars.

    ex :
    http://100.00.0.00:0000/services/myservice?wsdl
    to
    http://myIP_port/services/myservice?wsdl

    with %myIP_port% defined in the IS global vars

    but I’m not sure the consumer wizard would accept the global var.

    Why it would be a bad way please ?

    Regards


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 5.  RE: Change the consumer source URIs for deployment

    Posted 02/18/16 09:27 AM

    Oh, I understand better now, Prasad…
    Thanks


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 6.  RE: Change the consumer source URIs for deployment

    Posted 02/19/16 07:37 AM

    Hi,

    Ok, i’ve understood what I was missing : after creating a new web service endpoint.
    I had to set the Port alias attribute of my Consumers…
    Now it works. :slight_smile:
    Thanks a lot.

    Regards


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General