IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  HTTP POST from DSTX map

    Posted 05/21/07 08:48 AM

    Originally posted by: SystemAdmin


    Hi,

    I want to post form data to a website, from within a DSTX map, and expect to receive the server's response.

    For example: GET("HTTP",
    "-URL http://128.30.112.95:9080/echo.jsp -METHOD POST -TV -TYPE application/x-www-form-urlencoded")

    The form has six text boxes. I want to pass the values of the six text boxes (say 'hi')and retrive the response.

    I would appreciate any help in this regards.

    Attached is how the form looks like after the server processes the six 'hi' values, passed to it.

    Cheers,
    Mondweep.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: HTTP POST from DSTX map

    Posted 05/21/07 12:36 PM

    Originally posted by: SystemAdmin


    This has been resolved now.

    The way is to pass parameters as shown below:-
    GET("HTTP",
    "-URL http://128.30.112.95:9080/echoRequest.jsp?field1='hi1' -METHOD POST -TV -TYPE application/x-www-form-urlencoded", "Hello,hi")

    This issues a parameter 'hi' and a payload 'Hello.hi' to the url ' http://128.30.112.95:9080/echoRequest.jsp'.
    The server responds as:-

    Input URL /echoRequest.jsp
    Input method POST
    Input content length 8
    Input content type application/x-www-form-urlencoded
    Input protocol HTTP/1.1
    Secure ? false
    Server name 128.30.112.95
    Remote address 128.30.80.129
    Requested URI /echoRequest.jsp
    Scheme http
    Input Stream com.ibm.ws.webcontainer.srt.http.HttpInputStream@73aae1cb
    Parameter Names List:
     field1 = 'hi1'
    In order to send complex data, an XML file could be agreed upon as a payload between DSTX and the webserver so that the latter bases its processing based on the data within the XML payload.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange