I have this code to post a SOAP message:

PostMethod post = new PostMethod(myurl);
post.setRequestHeader(HttpFields.__Accept, "application/soap+xml");
post.setRequestHeader(HttpFields.__UserAgent, "MyClient");
post.setRequestHeader(HttpFields.__ContentType, "text/xml; charset=utf-8");
post.setRequestHeader("SOAPAction", "\"\"");
post.setRequestEntity(new InputStreamRequestEntity(new
ByteArrayInputStream(message),
InputStreamRequestEntity.CONTENT_LENGTH_AUTO));
post.setContentChunked(true);

Is that all I have to do?
How do I set the size?

Any guidance would be appreciated.
Thanks

int responseCode = m_httpClient.executeMethod(post);
                                   
InputStream ins = post.getResponseBodyAsStream();
-- 
View this message in context: 
http://www.nabble.com/newbie-question----setContentChunked-tf4230754.html#a12036212
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to