Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty Http Client and SAAJ API

Hi all,

Is it possible to use the Jetty HTTP Client together with the SAAJ API? eg can I do something like:

HttpClient client  = new HttpClient();
client.start();
SOAPMessage msg = .....
// build up SOAPMessage contents
msg.writeTo(client.newRequest(...).rawOutputStream());

That last line of course is completely made up. Basically what I'm looking for is that "msg.writeTo(OutputStream)" creates the entire request, headers + body. And I'd like to do this asynchronously as well...

Maarten


Back to the top