Am Donnerstag, den 10.01.2008, 14:21 -0800 schrieb George McKinney: > Hi all, > I'm new to cxf, though have used Weblogic, Axis, and JAX-WS tools ( beginning > from wsdl . ( And I don't have access to the code base at the moment - > otherwise I'd flail around a while longer :) > > 3 questions > server side, I am used to defining a a logging handler chain in ( for > instance ) sun-jaxws.xml in WEB-INF - just to log the SOAP messages to a > log4J logger. What is the cxf equivalent? >
The CXF equivalent to Metro's JAX-WS Handlers are JAX-WS Handlers--see here for info: http://www.jroller.com/gmazza/date/20080107 > client side, I > 1 programatically create a list of Handlers ( the same logging Handler, and > another Handler that adds a specific http headers and values. > 2 set the BindingProvider.ENDPOINT_ADDRESS_PROPERTY to the url of the > webservice to be consumed. > > doing both by casting to a BindingProvider and doing stuff. > > Will this kind of thing work with cxf, or is there another way? CXF also has interceptors you can use: http://cwiki.apache.org/CXF20DOC/debugging.html HTH, Glen
