Hi, > 1. Do i have to use MultipartRequestEntity? Bcos i saw a post in this > mailing list in May 2007 from a user who tried to do it this way? I was > not able to find out if he was successful.
Multipart-MIME is specified for SOAP, and MRE is our implementation for that format. Of course you can use a different Multipart-MIME implementation and write your own RequestEntity around it, or convert it to binary data as you mention below. > 2. For this type of submission, does it have to Multipart HTTP request? What is a Multipart HTTP request? > 2. The way i have implemented is : > * Formulate the SOAPMessage using SAAJ API. > * Create the attachment part and attach it to the SOAPMessage. I have no idea what these APIs are. If the SOAPMessage implements Multipart-MIME encoding, you should be fine. > * Create a PostMethod and set the RequestEntity as a > ByteArrayRequestEntity by including the SOAPMessage's contents (using > SOAPMessage.writeTo(.) method) > * Set the PostMethod's contentType as "text/xml" Have a look at the PostSOAP example: http://svn.apache.org/repos/asf/jakarta/httpcomponents/oac.hc3x/trunk/src/examples/PostSOAP.java Replace the FileRequestEntity by your ByteArrayRequestEntity. hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
