When it reaches the above line httpConn.getInputStream() it throws the error
java.io.IOException: Server returned HTTP response code: 500 for URL:
Due to this,response is not generated and webservice methods are not called.What could be wrong?Please help.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Problem may be this line
You should never close a connection until you have also handled the matching input stream. You can flush() to ensure the entire request is sent.
The close will close both sides of the connection.