Hi ,

Sometimes this may helpful to you.

regarding headers

http://cxf.apache.org/faq.html#FAQ-HowcanIaddsoapheaderstotherequest%2Fresponse%3F

and for logging , best way to implement interceptor , that is what i am also
doing now.

http://cxf.apache.org/docs/interceptors.html

or if looking to do something by your hand , this is the place to look for
in the src.

org.apache.cxf.interceptor.LoggingMessage

thanks
D


On Tue, Apr 26, 2011 at 7:27 PM, KARR, DAVID (ATTSI) <[email protected]> wrote:

> > -----Original Message-----
> > From: Steffen Schäffner [mailto:[email protected]]
> > Sent: Tuesday, April 26, 2011 4:50 AM
> > To: [email protected]
> > Subject: CXF and SOAP
> >
> > 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.
>
> I assume you've confirmed this, not just guessing that you'll get an error?
>  The Soap schema specifies that the header is optional, so a server that
> gives a specific error saying the header is missing, is defective.
>
> Years ago, I noticed that the Websphere web services infrastructure would
> throw an NPE if a Soap header was not present.  Are you using Websphere on
> the server, by any chance?
>

Reply via email to