Posting a XML file to a listener URL

Discussion in 'Java' started by Jagan, Aug 8, 2003.

  1. Jagan

    Jagan Guest

    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
     
    Jagan, Aug 8, 2003
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. alanb
    Replies:
    2
    Views:
    776
    alanb
    Apr 23, 2004
  2. Jon paugh
    Replies:
    1
    Views:
    1,334
  3. James

    file / directory listener

    James, Jul 5, 2004, in forum: Java
    Replies:
    2
    Views:
    21,966
    Jacob
    Jul 6, 2004
  4. flo
    Replies:
    2
    Views:
    794
    Bernd Maierhofer \(dato\)
    Nov 24, 2005
  5. jkflens
    Replies:
    2
    Views:
    1,719
    jkflens
    May 30, 2006
  6. AmitKu
    Replies:
    7
    Views:
    800
    John Timney \(MVP\)
    Jan 8, 2007
  7. Just D.
    Replies:
    0
    Views:
    801
    Just D.
    Aug 11, 2004
  8. Erik Wasser
    Replies:
    5
    Views:
    816
    Peter J. Holzer
    Mar 5, 2006
Loading...