The PostXML sample code from Apache HttpClient works fine for me. 
http://svn.apache.org/viewvc/jakarta/commons/proper/httpclient/trunk/src/examples/PostXML.java?view=log

servicemix-http is supposed to handle MIME attachments but I can't upload
files with this
http://svn.apache.org/viewvc/jakarta/commons/proper/httpclient/trunk/src/examples/MultipartFileUploadApp.java?view=log

My goal is to upload a binary (http), then put it in a queue (jms) and
finaly upload it (ftp or http)



dfischer wrote:
> 
> Thank you for your response.  That is exactly how I am doing it through
> code.  Maybe I will look into the Commons Fileupload and see if I can add
> that support.
> 
> Has anyone else tried to do anything like this with the HTTP component?
> 
> Thank you,
> Doug
> 
> 
> On 7/9/06 8:10 AM, "dkd" <[EMAIL PROTECTED]> wrote:
> 
>> 
>> How are you "posting from your code"?
>> 
>> When I send a message over HTTP directly from code I just open a socket
>> to
>> the server and write the XML directly to it.
>> 
>> However when you POST from a form it becomes a multipart request.
>> 
>> Each form element is a part in the request and surrounded by identifiers.
>> 
>> My guess is that the HTTP binding component does not support multipart
>> requests.
>> 
>> Something that should be fairly easy to add with the Apache Commons
>> Fileupload that handles multi-part requests.
>> 
>> http://jakarta.apache.org/commons/fileupload/
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Http-binding-question-tf1906680.html#a6974874
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to