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

Http to service that starts with stringToDocument parameters are missing

  • 1.  Http to service that starts with stringToDocument parameters are missing

    Posted Thu September 04, 2003 04:54 PM

    When I try to post an xml message with the service pub.client.http and I add the xml data in the input variable String, then the service that is call returns an error code 403 and in the error log I can see that the error message was “Parameters xmldata, $filestream and $filedata are all missing”. The first service in the flow is stringToDocument. Do I have to insert another service prior to stringToDocument to fill the variable xmldata?

    Thanks,
    Marc


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


  • 2.  RE: Http to service that starts with stringToDocument parameters are missing

    Posted Thu September 04, 2003 05:33 PM

    Have you specified Content-Type as “text/xml” in http service?

    or else

    Try sending with $xmldata as a argument and set content-type as "text/xml in the http posting service and specifiy *node as input in the invoking service.

    HTH.


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


  • 3.  RE: Http to service that starts with stringToDocument parameters are missing

    Posted Thu September 04, 2003 05:44 PM

    If your Content-Type is set to ‘text/xml’ on the client service, then on the server side, you’ll receive your XML document as a ‘node’ object. You can pass this node object to ‘pub.web:documentToRecord’ to convert the node object to a record representing your XML, then you can pass this record to ‘pub.web:recordToDocument’ to convert the record back into an XML document.

    Alternatively, you can perform XQL (XPath-like) or WQL queries against the ‘node’ object by passing the node to ‘pub.web:queryDocument’. For example, after passing the node to this service, click on the variables tab, and add the WQL statement ‘doc.src’ and assign the result to ‘xmldata’ as a String object, and you should get your original XML document. More examples can be found in the developer tool documentation.


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


  • 4.  RE: Http to service that starts with stringToDocument parameters are missing

    Posted Fri September 05, 2003 02:39 PM

    Ok. I tried Content-Type ‘text/xml’ and ‘pub.web:documentToRecord’ instead of stringToDocument and it works!

    Thanks


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


  • 5.  RE: Http to service that starts with stringToDocument parameters are missing

    Posted Tue March 14, 2006 06:50 AM

    Besides using “TEST->SEND XML File…”, what are other ways to send and test XML file in SAP BC?


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