Hi Roland, You mentioned that questions regarding sending SOAP with attachment appear in the maillist before, but I really cannot find it. I only find one thread regarding PostSOAP. Could you kindly give a link to the thread?
By the way, is it necessary to send SOAP as a file in HttpClient? I feel sending SOAP as string part should also be OK. Please advice. Regards, Xinjun On 5/15/07, Xinjun Chen <[EMAIL PROTECTED]> wrote:
Sure. I'd like to add some documentation for the SOAP with attachment using HttpClient after I successfully test all the codes. Regards, Xinjun On 5/15/07, Roland Weber <[EMAIL PROTECTED]> wrote: > > Hello Xinjun > > > Do you mean I should create another RequestEntity class to extend the > > current MultipartRequestEntity and override the getContentType() > method? > > Yes. > > > From the getContentType() method, we can find that the contentType is > fixed > > to be "multipart/form-data". What if I setContentType to the post > method > > explicitly? Will it take any effect? > > There is no setContentType in PostMethod. > > > 2. Http contentType: > > Before executing post method, I set the content type as follows: > > I have written in my previous mail that this will not take effect. > > > > But the effect is that the Http body is lost inspecting from > TCPMonitor. > > I suspect that you made some other mistake to loose the entity. > > > By the way, I searched the HttpClient documentations and samples from > > > Apache website, but could not find information about sending SOAP with > > attachment files. I think this task should be quite common. If > possible, > > could you give me some pointer to that? > > Similar questions have appeared before, please search the > mailing list archives. This project, including it's documentation, > is a community effort. If you've got the time, please compile > your findings in a Wiki page. Then we can point to that in > the future. > > http://wiki.apache.org/jakarta-httpclient/ > > hope that helps, > Roland > > >
