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

Pubclienthttp

webMethods Community Member

webMethods Community MemberTue November 26, 2002 09:55 AM

  • 1.  Pubclienthttp

    Posted Sat November 23, 2002 04:02 PM

    having a problem posting some xml to an asp page using pub.client:http, it’s fine dropped in manually but not so when using this service. Any help appreciated.

    cheers
    Stallion


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Pubclienthttp

    Posted Sat November 23, 2002 09:45 PM

    What sort of problem? Any specifics you can provide will go far in the group being able to provide pertinent help. Can you post what parms you are setting in the pub.client:http call? What is the asp expecting? name/value pairs? xml in the body of the post with text/xml content type?


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Pubclienthttp

    Posted Mon November 25, 2002 09:20 AM

    it is set to expect name/value pairs url = [url=“http://anipaddress/xml.asp?xml=blahblah”]http://anipaddress/xml.asp?xml=blahblah[/url] , method = post

    I have set an argument [args] within data as xml and mapped over the data that i wish to send but with no success when posting, yet i know the url is fine as is ok when manually dropping data in.

    thanks in advance if u can assist.


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 4.  RE: Pubclienthttp

    Posted Mon November 25, 2002 02:19 PM

    try $xmldata OR xmldata=“value”; that should work.
    Thanks
    VR


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 5.  RE: Pubclienthttp

    Posted Mon November 25, 2002 02:57 PM

    xmldata is being set as the value for the name ‘xml’ which will give an argument of ?xml=xmldata - where xmldata is the string being passed to the asp.

    The page has been set by a third-party to accept name/value pairs, does the Integrator send this data as stream by default or bytes.

    i have set string to equal the data i wish to send, and also tried it setting a name within data->args and setting it’s value - again with no success, could it be the asp page?


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Pubclienthttp

    Posted Mon November 25, 2002 05:17 PM

    A few thoughts:

    1. Are you using HTTP POST or HTTP GET? There is a URL path character limitation of 2,048 characters. When using GET, the variables are appended to the actual URL. You may be exceeding this limit. For your reference, when using POST, the variables are sent as part of the HTTP header and not the URL.

    2. Have you been able to capture what is sent to the ASP page from your IS service? Does it look “normal”?

    3. In the Data > Args section, did you create a String named “xmldata” and then map your XML string into it?

    4. Does your ASP page require a proper Content-type setting? Did you set Content-type using pub.client:http?

    5. Is your ASP page choking on the message or is it not being invoked at all?


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: Pubclienthttp

    Posted Mon November 25, 2002 05:33 PM

    A few responses:

    1. Are you using HTTP POST or HTTP GET? There is a URL path
    • I’m using POST as I’m sending this info.
      [“character limitation of 2,048 characters. When using GET,
      the variables are appended to the actual URL. You may be
      exceeding this limit. For your reference, when using POST,
      the variables are sent as part of the HTTP header and not
      the URL” Args section, did you create a String named
      “xmldata” and then map your XML string into it? yes
    1. Does your ASP page require a proper Content-type setting?
      Did you set Content-type using pub.client:http?not specified, but have tried settings text/xml, text/plain and text/html

    2. Is your ASP page choking on the message or is it not
      being invoked at all? just not showing anything [choking could be right!!

    basic asp we tested it with is as follows:

    Asp collection page

    ideas? thanks Dan


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 8.  RE: Pubclienthttp

    Posted Mon November 25, 2002 05:48 PM

    Stallion, you are going to have to format your HTML tags properly for them to show up on the Web site.

    We disable all HTML tags to prevent malicious code from running. Go to [url=“wmusers.com”]wmusers.com for instructions.

    It’s pretty simple – just take your original code, do a search-and-replace for your tags, and paste it back in.

    Thanks.


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 9.  RE: Pubclienthttp

    Posted Tue November 26, 2002 09:55 AM

    whoops, thanks Dan
    here’s the basics of the asap

    Asp collection page
    <% indata = Request("xml") response.write "Data sent = " & indata %>

    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 10.  RE: Pubclienthttp

    Posted Tue December 03, 2002 12:25 AM

    Stallion - Your asp page is looking for a variable called “xml”, so in the args add a variable called xml and pass the data there. I just tested it that way and got it to work with no problems.

    Hope this helps.
    Theo


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 11.  RE: Pubclienthttp

    Posted Tue December 03, 2002 10:25 AM

    thanks Theo - this is what I passed out as a name\value pair and it worked fine with my own asp just had an issue with the page written by an internal client. We have now resolved this, but thank you for your pointers.


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 12.  RE: Pubclienthttp

    Posted Tue March 25, 2003 04:34 AM

    Hi

    I’m a novice to WM and have been attempting to convert an inbound XML message by extracting fields from a XML message and re-map to arguments using pub.client:http. From TN I can run a service, but I am unsure on how to map XML fields to arguments within pub.client:http

    Any help would be greatly appreciated.


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 13.  RE: Pubclienthttp

    Posted Wed April 02, 2003 09:44 PM

    What type of arguments you are trying to pass for http service.

    Is it for authentication or some data.?


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport