Hi, 1. There is a good online documentation at http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html that describes how to set the authentication header, namely by setting the UserName and Password properties for your http conduit.
2. If you just want to log each message, you can just use the logging feature (i.e., adding <cxf:logging> under <cxf:features> in the cxf bus configuration) or inserting the logging interceptors manually. The logging interceptors simply write the passing messages to the log. If you want to conditionally log the message to some specific output location, you will need to write your own interceptor. org.apache.cxf.interceptor.LoggingOutInterceptor will be a good starting point. Regards, aki 2011/4/26 Steffen Schäffner <[email protected]>: > Hello there, > > I have some more questions about CXF. > > I am using CXF 2.4.0. > > > 1. If I don't use an authorization, no header will be added to the SOAP > message. How can I change that? If no header is within, I will get an error > from my server. > > 2. How can I print/save/use the outgoing/incoming SOAP messages? For > example if I get an error I want to log the outgoing/incoming SOAP messages. > Where to set/select this? > > Thank you! > > Best regards, > > Steffen Schäffner > >
