Hi folks;
hope not to crash in here with a trivial question. In the course of
migrating an application to glassfish, I am thinking of rebuilding an
axis-based web service using jax-ws. For what I read so far looking
through the tutorials, getting started with jax-ws is pretty
straightforward given you are to expose a WebMethod that takes a bunch
of parameters and returns a certain value. So far, so good.
However, my very service currently is extracting XML payload from a SOAP
message and processing right that, sending a message containing an XML
payload built by a back end system in return. Currently, the
allowedMethod implementation starts like this:
[...]
org.apache.axis.MessageContext msgContext =
org.apache.axis.MessageContext.getCurrentContext();
org.apache.axis.Message soapMessage =
msgContext.getRequestMessage();
try {
SOAPPart sp = soapMessage.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPBody sb = se.getBody();
[...]
Question, for pointers or hints: What is the best approach of rebuilding
something like this using JAX-WS? Where to look to get started this way?
Thanks for your patience and bye,
Kristian