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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Receiving HTTP Form Data

    Posted 07/29/04 09:08 PM

    I’m trying to receive data from Agile 9.0, which, as far as I can determine, can send via HTTP POST, but only as “multipart/form-data”. I cannot figure out how to get my flow service to receive this data. I have a service that can receive “text/xml” data, but can’t find any information on receiving “multipart/form-data” requests.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Receiving HTTP Form Data

    Posted 07/29/04 09:33 PM

    Eric,

    Have you looked into WmSamples package of mime Folder there are some sample services like (sample.mime:extract_MultipartMIME)which internally takes InputStream object and pass the MIME message to the local createMimeData service.

    To check where the HTTP post data is sending “multipart/form-data” use the getTransportInfo service and see whether the contentStream object is showing up and Content-Type=“multipart/form-data”

    Also see this link discussed about Content-Type=multipart/form-data.
    [url=“wmusers.com”]wmusers.com

    HTH,
    RMG


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 3.  RE: Receiving HTTP Form Data

    Posted 07/29/04 10:31 PM

    There is a multipart/form-data ContentHandler in the WmJBoss package.
    Unfortunately in what in hindsight was a very stupid move, I mixed the startup and shutdown code of the JBoss server with the startup and shutdown of the handler. The idea was this code would move into the core IS, but it has not happened as of yet because no one has been bugging support or, even better, sales about it.

    But if one happened to put the classes that ship in WmJBoss/code/classes/wm/mime and WmJBoss/code/classes/wm/mime/resources into their package and they wrote the following two services as their package’s startup and shutdown services, something good could happen, which I cannot guarantee or support. :wink:

    import wm.mime.HandlerFactory_Multipart;

    startup service contains:

    ServerAPI.registerContentHandler(“multipart/form-data”, new HandlerFactory_Multipart());

    shutdown service contains:

    ServerAPI.removeContentHandler(“multipart/form-data”);

    Cheers,
    Fred


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 4.  RE: Receiving HTTP Form Data

    Posted 07/30/04 06:58 PM

    You mean, like this?

    MultipartMimeContentHandler
    MimeMultipartContentHandler.zip (10.1 k)

    What would a unit test for this look like?

    Mark


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 5.  RE: Receiving HTTP Form Data

    Posted 07/29/09 09:23 PM

    Mark,

    I did tried using the package that you created, but still I’m not able to extract the file contents when posting an HTML form using enctype as multipart/form-data. The receiving service is still not allowing me to extact the file contents though I can see them through savePipeline.

    I then tried copying just the mime class files from your package & copied them to my own package within the classes folder…but still no results.

    Please help me in identifying whats missing…I’m really stuck and need your help to come out of it…Thanks much!


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services