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.  Socket Adapter with GET

    Posted 11/13/15 06:26 AM

    Originally posted by: PrriyaT


    Hi All

    I am trying ti implement socket adapter in a output acrd as below:

    =

    VALID(GET("SOCKET","-HOST xx.xx.xx.xx -PORT xxxx -SIZED -T ", "data"), LASTERRORCODE( )+":"+LASTERRORMSG( ))

     

    Is this usage correct?


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 2.  Re: Socket Adapter with GET

    Posted 11/13/15 12:40 PM

    Originally posted by: paul.brett


    Technically, it is valid, but ultimately not a lot of use, as with a GET() the content would have to be there at that exact moment in time.

    I think what you're trying to do is setup a socket receiver.  This is something you cannot reasonably do using Command Server.

    If you were to use the WTX Launcher, and have the input card as a socket with a command line such as:

    -HOST 9.81.79.104 -PORT 6000 -MODE server -EOM ### -NEM 1 -QTY 9999999 -T

    ....and have this set as a source trigger, then you could have the WTX Launcher wait for messages on port 6000, terminated by a ### sequence.

    Let me know if this helps with your project.

    Thank-you.

    Paul.

    Follow me on Twitter


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 3.  Re: Socket Adapter with GET

    Posted 11/16/15 08:09 AM

    Originally posted by: PrriyaT


    Hi Paul

    I am trying a synchronous call to a legacy system using socket adapter. Also I cannot use a launcher.

    Could you advise me on below?

    1) would specifying a LISTEN value help?

    2) if i am to run multiple instances of map to the same target would the socket pick up corresponding response?

     

    Thanks

     


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 4.  Re: Socket Adapter with GET

    Posted 11/19/15 12:42 PM

    Originally posted by: paul.brett


    Ah, so the target system is already listening as a server, and by using WTX GET() with the socket adapter, you are attempting to simulate being a client?

    The third argument of your GET() is the data you put to the system, and then the result of the rule should be the reply from the socket server?

    I have setup a simple socket server, using WTX with the listener set as:

    Input 1 (T):    Socket: -HOST 9.83.119.124 -PORT 6000 -MODE server -EOM ### -T+
    Output 1   :    Socket: -HOST 9.83.119.124 -PORT 6000
    

    I then used a WTX map rule:

    =GET("SOCKET","-TV -HOST 9.83.119.124 -PORT 6000","This is a test###")
    

    ...and the map executed correctly, with the output from the server of:

    This is the IBM Websphere TX server
    You entered :    This is a test

    I hope that fully answers your question.

    Thank-you.

    Paul.

    Follow me on Twitter

     


    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender