Cómo obtener el método SOAP en el controlador JAX-WS CXF

I'm writing a handler, implementing:

SOAPHandler<SOAPMessageContext>

I only want to do something on a certain SOAP call, but it looks like the handler gets attached to the web service overall, rather than a specific method.

So, how to check what method is being called in my handleMessage code?

Muchas Gracias

preguntado el 01 de febrero de 12 a las 14:02

1 Respuestas

OK looks like I found a way, not sure if it's the best method but it should work:

SOAPMessage message = smc.getMessage();
SOAPBody body = message.getSOAPBody();

//Then grabbing the first child node of the body and checking its name:
Iterator<Node> nodes = body.getChildElements();
// get the first one
if (n.getNodeName().equals("The node name for the particular operation")) {
 // then we have it
}

Respondido 01 Feb 12, 19:02

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.