cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bharath thippireddy" <>
Subject Few Open issues using UserName Token Profile
Date Tue, 16 Jun 2009 18:45:05 GMT
1)How do we configure the interceptors at a bus level in cxf-servlet.xml along with the endpoint

2)Once the ws-security(user name token profile/encryption) is enabled on each endpoint using
the declarative method in cxf-servlet.xml we see the following exception if the client sends
a request without user token soap header.Since we will be having other methods to authenticate
how can we make these headers optional. Is commenting the ws-security interceptor declaration
in the cxf-servlet.xml the only way?

Jun 16, 2009 1:43:28 PM handleMessage
WARNING: Request does not contain required Security header
Jun 16, 2009 1:43:28 PM handleMessage
WARNING: An error was discovered processing the <wsse:Security>
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(
        at org.apache.cxf.transport.servlet.ServletDestination.invoke(
        at org.apache.cxf.transport.servlet.ServletController.invokeDestination(
        at org.apache.cxf.transport.servlet.ServletController.invoke(
        at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(
        at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(
        at javax.servlet.http.HttpServlet.service(
        at javax.servlet.http.HttpServlet.service(

3)Does cxf support having custom tokens under the username token header ?.I do see the methods
available on the client and server callback classes but I do not see the custom element getting
added to the UT header.

        Document doc = docBuilder.newDocument();
        Element customToken=doc.createElement("customToken");

thanks and regards,

View raw message