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.  Spaces in the html URL params

    Posted Wed January 16, 2008 04:42 PM

    I have spaces in my URL params. If I replace spaces with ‘%20’ charecter it is working fine.

    But I don’t want to do that as there can be any other charecters also.
    So is there any service that I can inoke in wM which converts these charectors to URL friedly charecters (eg: space to %20)


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: Spaces in the html URL params

    Posted Wed January 16, 2008 06:04 PM


  • 3.  RE: Spaces in the html URL params

    Posted Wed January 16, 2008 06:47 PM

    Do I need to pass the complete URL to this FS?
    For eg:
    I have:
    [URL=“http://aaa.bbb.com/ddd?name1=value1&name2=value2&”]http://aaa.bbb.com/ddd?name1=value1&name2=value2&[/URL]
    name3=value3&name4=<?xml version=“1.0”>…

    Since there is a space between “xml” anbd “version”, http call is failing. Even when I include the whole URL in “pub.string:URLEncode”, I am still having this problem. If I change the space between “xml” anbd “version” to ‘%20’ then it works. Is there any other FS to do this or I don’t have any other choice other than doing search and replace all occurances of space to %20?


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Spaces in the html URL params

    Posted Wed January 16, 2008 08:23 PM

    Do a http “post” instead of http “get”. Post all of your variables through the body instead of the url. You don’t need to do any encoding then…


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 5.  RE: Spaces in the html URL params

    Posted Wed January 16, 2008 08:24 PM

    Why are you building the URL yourself? Review the description of pub.client:http. You don’t need to do URL creation or encoding yourself. Let the http service do it for you.


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 6.  RE: Spaces in the html URL params

    Posted Wed January 16, 2008 08:25 PM

    You can do “get” and not have to do the encoding yourself. Let the built-in service do the work for you!


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB