Hi All,
I was hoping to have some things set in the handlers, e.g. username
passed in the Authorization token; and have that username (or a java
bean) available when the method is finally invoked.
I've read somewhere that the class org.apache.cxf.message.Exchange would
have the in and out Message available for JAX-RS services, however, I am
not sure how to get the said object. I have tried having the following
as method parameter or as class variable to no avail:
@Context
Exchange ex
As a parameter, the handlers are able to finish, but when it comes to
invocation of the actual method/endpoint I get this exception:
<ns1:faultstring
xmlns:ns1="http://cxf.apache.org/bindings/xformat">java.lang.IllegalArgumentException:
wrong number of arguments</ns1:faultstring>
As a class variable, the said object is always null.
Again, my thanks.
Gabo