Send files using http service (<form> <input type=&


I would really appreciate if someone can tell me how I can use the http service (pub.client.http) to send a file as a part of multipart/form-data.


We have done this a couple of different ways.

Our first attempt involved using the createMimeData, addBodyPart and getEnvelopeStream services provided in While eventually successful, this approach was overly complicated as it involved parsing and modifying headers.

Our second attempt involved developing a generalized flow service to build the http payload manually. This approach required indepth knowledge of mime constructs, and while complicated to develop initially, it is relativly simple to use.

We have asked our webMethods customer service rep. to look into this issue as we would like to see a simplified approach supplied by the vendor.

We would be interested in knowing how you have approached this issue.