I'm attempting to write my first interceptor, but having trouble getting of
the ground. It's basically a custom logger that takes attributes from the
request/response and writes them to a database our DBA's have created for
me.
I chose the interceptor route because it is easily enabled/disabled in the
Spring config, and we want to use it across many of our webservices without
changing the webservice code.
These are SOAP services over Http.
First, my interceptor class declaration:
public class SimpleUsageTrackingCXFInterceptor implements
PhaseInterceptor<Message>
public void handleMessage(Message soapMessage) throws Fault {
....
}
soapMessage has a ton of methods. I need to get a handle to the Java objects
the XML represents. if I call Message.getValues() I get a bunch of QName
objects. Is there a better method to use to get the unmarshalled objects?
I've read through the mailing list that where I insert my interceptor in the
chain has a lot to do with this... I've tried setting breakpoints in
PhaseInterceptorChain but It's really not clicking. Is there a particular
interceptor I should insert my interceptor after?
I'm not asking for someone to write my code, just a stern shove in the
correct direction. Thanks for any help guys!
--
View this message in context:
http://www.nabble.com/Stuck%3A-What-interceptor-unmarshals-qnames-back-into-java-objects--tp25646299p25646299.html
Sent from the cxf-user mailing list archive at Nabble.com.