Hi, in here[1], search on "ReadSOAPHeaderInInterceptor.java", that class does read a SOAPMessage. You can probably build from there or look at the internal source code of our logging interceptors[2] to see how to write to a log file. (That, or just use CXF's logging interceptors directly with no need to create your own.)
HTH, Glen [1] http://www.jroller.com/gmazza/entry/jaxwshandlers_to_cxfinterceptors [2] http://cxf.apache.org/docs/debugging-and-logging.html DazBaz wrote: > > Hi. Hope someone can help. > > I am using CXF running on Tomcat for a number of web services. I am trying > to write an Interceptor that will capture all incoming web service > requests, extract the whole SOAP envelope (including body) as a String and > write it to a log file. I thought this would be relatively easy but I > haven't been able to get it working. I am unable to extract the SOAP > envelope from the request. I have searched on this and other forums > (fora?) and have found a couple of similar posts but none of the proposed > solutions have worked for me. My latest attempt is below. Everytime I send > a request to the server the interceptor is being called but the > OutputStream is always null (LINE 2). I have tried each of these phases in > LINE 1: > -- View this message in context: http://cxf.547215.n5.nabble.com/Accessing-SOAP-message-in-Interceptor-tp2640804p2641311.html Sent from the cxf-user mailing list archive at Nabble.com.
