webMethods

webMethods

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.  Passing InputStream to wmEDIINTsend

    Posted Fri March 05, 2004 03:58 PM

    I created a customized flow service to receive my bizdoc from TN and get the parameters and data to pass to wm.EDIINT:send, but when I run it, the data/stream never gets passed.

    I know that when I run pub.file:getFile (as in wm.EDIINT.sample:send), my data/stream is of type java.io.InputStream. But I need to get byte data from my bizdoc, so I use wm.tn.doc:getContentPartData, which gives me java.io.ByteArrayInputStream.

    Could that be the reason data/stream doesn’t get passed?

    It seems like I’m missing something incredibly basic.

    Dave


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 2.  RE: Passing InputStream to wmEDIINTsend

    Posted Fri March 05, 2004 05:06 PM

    We convert using pub.io:bytesToStream before mapping into “send”…Is that it?


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 3.  RE: Passing InputStream to wmEDIINTsend

    Posted Fri March 05, 2004 05:09 PM

    ps…we convert using the “content” object from bizdoc…


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 4.  RE: Passing InputStream to wmEDIINTsend

    Posted Fri March 05, 2004 05:44 PM

    Jon,

    I’d tried that too, with the same problem. My mistake was being too cautious and saving my wm.EDIINT:send pipeline to a file, then stopping. Then I’d restore and step through. I hadn’t known streams couldn’t be saved. When I just let it all rip, everything worked.

    Thanks anyhow.


    #Integration-Server-and-ESB
    #webMethods
    #edi