I'm trying to implement a web service that has been specified to switch the communications direction between the client and server.
The communication flow is the following
Client initiates connection to server
Client will send messages to server and await response (Request/Response pairs)
Client will send empty request to server
Server will send messages to client and await response (Request/Response pairs)
Is there a way to implement that in either JAX-RPC or SAAJ (or anything else)? If so how?
I can get the part to work until the server acts like a client (can't get the switch etc). How would the client do that? Can't find that either!
Any help is appreciated.
A JBossWS client can only ever initiate the request/response pair. However, its easy to setup two jboss instances to do what you want, both acting as WS client and server. Remember, jboss can be very leight weight (microkernal + deployed services).