I have generated code with wsdl2java
which works fine with default Java JAX-WS
implementation. When I add CXF my application stops working. I know that this because switching JAX-WS
implementation( Why wsdl2java generated code use CXF dependencies at will?).
I was debugging what is specific reason of failure and I found out that all my parameters are sent in message body. This is odd because it looks like CXF ignores header = true
argument. Just like this:
@WebParam(name = "auth", targetNamespace = "urn:ns", header = true)
Why is that so? What might be the reason?
Secondary question:
I think that debugging annotation processing might help me. I've read some articles about that, but I don't know where I can find annotation processor for @WebParam
. Any ideas? Any additional hints?