You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by "Won J. Jeon" <wo...@students.uiuc.edu> on 2001/08/14 03:12:22 UTC
RE: failure notice
Hi,
I'm looking into the sample code, "messaging" and would like to make my own
network connection on top of SOAP connection. Basically I'd like to implment a
client/server application using plain socket library to have another
connection, not for SOAP messages.
For example, I inserted my own code in the purchaseOrder call in the
POProcessor.java.
..
public class POProcessor {
public void purchaseOrder (Envelope env, SOAPContext reqCtx,
SOAPContext resCtx)
throws MessagingException, IOException {
...
server_socket = new ServerSocket(port);
while (true) {
Socket socket = server_socket.accept();
...
}
...
}
...
}
But, when I execute it, the service blocks while it executes accept()after
executing ServerSocket(). Does it mean that I cannot use the general socket
library in the service implementation??? What's wrong with it? How can I solve
this problem? I apprecieate your comment and help.
Regards,
- Won