[Logo]
Forums Register Login
HttpURLConnection - Posting XML to a servlet
Hi,
Ok... this is really frustrating me so I hope you can help.I'm trying to post XML to a servlet from a java client. The XML is never received by the servlet.I've posted the client and servlet code below. Any help is appreciated.
Thanks.
Java Client

Servlet
Oh yeah, I'm not getting any exceptions thrown in the java client either - so I'm not sure what the problem is.
hi
just try to post a simple String to the same servlet from the same java client program and see if it is working. if it doesn't then look at here
this helped the other person to solve the problem. i'm not sure if this can solve yours....
thanks
maulin
Thanks Maulin.
It worked. The thread you sent me helped.
I've posted my client and servlet code below.
Client

Servlet


Cheers!
John
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss


This thread has been viewed 22855 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 20, 2018 18:22:44.