Posting a XML file to a listener URL

J

Jagan

Hi all,
I have a situation like this: A servlet Client should post a XML file
to a listener URL, and the listener responds back with a XML file
after the transaction.
1. Before posting, the servlet client should establish a session with
the server on which the listener URL is sitting and the Server will
return a cookie with the authentication credentials to the servlet
client.
2. That cookie should be added to the HTTPResponse and then the
posting of the file should happen.

The first part is happening okay ..and i could add that cookie to the
HTTPresponse.
Now, did anyone successfully post a XML file to a URL like this from a servlet?
I tried using URLConnection, but my cookie got lost and i got back a 401 error.

Any example code please!!

thanks a lot
Jagan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top