This is what I am trying to do and I am unable to read the last line of the SOAP
message.
---- on the client side ---- SOAPMessage msg; //created and loaded with contents msg.writeTo(socket.getOutputStream()); socket.getOutputStream().flush();
----- on the server side -----
SOAPPart sp // obtained from the soap message
sp.setContent(new StreamSource(socket.getInputStream()); // this approach hangs invariably
Hence tried using BufferedReader for the socket input stream
while (buffreader.readLine() != null) {
// print line
}this waits indefinitely for the </soap:Envelope> ( the last line of the soap message)
When I kill the client, the server gets it. I do not want to close the client socket.
I would like to keep it open.
Any suggestions?
Regards Srilekha
