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.  Create user defined EDIINT header fields

    Posted Mon May 23, 2005 05:55 PM

    Hi

    I have a requirement to transfer image files by EDIINT and trasfer the file name somewhere in the header.
    I could not figure out how to do it using the flowservices in webMethods packages.
    Any help with this would he greatly appreciated !
    Best regards
    Rajoy


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


  • 2.  RE: Create user defined EDIINT header fields

    Posted Mon May 23, 2005 07:20 PM

    Rajoy,
    You can send the image files as content of the EDIINT outbound message.
    Try the following for file name with the “data content-type” as:

    Content-type;name=YOURFILENAME
    e.g.,
    application/octet-stream;name=myimagefile

    ~tS


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


  • 3.  RE: Create user defined EDIINT header fields

    Posted Fri May 27, 2005 04:40 AM

    Hi Tahira,

    Once the outbound msg hits the destination (another webMethods instance running EDIINT receive), how can we extract the value of var “name” you suggested to add? Should I just do a sub-string or is there any other more elegant way to do it?

    Thanks in advance!


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


  • 4.  RE: Create user defined EDIINT header fields

    Posted Fri May 27, 2005 02:26 PM

    Waldes,
    For webMethods substring is only way I am aware of. But for other packages as Cyclone, GXS etc that act only as AS2 Hubs this content-type and filename are used to store the data in the appropriate directory (edi, binary etc) with this filename.
    ~tS


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


  • 5.  RE: Create user defined EDIINT header fields

    Posted Fri July 08, 2005 03:36 PM

    Hi Tahira
    Thank you for your suggestion, it worked fine for sending the message. But at the receiving webmthods , I get an error “com.wm.app.b2b.server.ServiceException: getBodyPart not supported on non multipart message”
    The only thing I did differently was supply a gif file to contecnt and define content type as “application/octet-stream;name=podscan.jpg” to the wm.ediint.send flowswervice.

    Do I need to defne a special content handler or something to handle the content type ? … any idea ??
    thanks in advance
    rajoy


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