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
  • 1.  REST With URL Alias

    Posted Fri April 27, 2018 07:17 AM

    Hello Team,

    I am designing a REST service ( GET Call) in 9.12 webMethods.

    I am able to invoke the service with complete URL information.

    http://:/rest/CompleteNameSpaceOfResource. say: http://localhost:5555/rest/supplyChain/sgc/contracts

    I have defined the URL alias to hide the URL information. URL Alias info as follows:-

    replace rest/supplyChain/sgc/contracts with URL alias /contracts.

    But seems, its not working when I am trying to fetch the data for say contract ID 1, /contracts/1 { 404 error} while the complete URL is working as expected.

    Please help. Where am i doing wrong.

    Kind Regards
    Sasa


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: REST With URL Alias

    Posted Fri April 27, 2018 09:49 AM

    Can we have a look at the URL Alias page and the rest implementation service? Are you using branch on /$resourceID


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: REST With URL Alias

    Posted Wed May 09, 2018 11:38 AM

    If you call http://localhost:5555/contracts/1, it doesn’t match the url alias that you defined, /contracts.

    To solve this and make sure the match between the url you call and the url alias, you should set this parameter in the extended settings
    watt.server.url.alias.partialMatching=true
    and restart IS.

    Let us know if this solves your issue.


    #Integration-Server-and-ESB
    #webMethods