Hello Freeman.
Thank you for your response. We tried the cxf bc instead, but we got this
exception :
Interceptor for
{http://tempuri.org/}MessageBoxService#{http://tempuri.org/}GetMessage has
thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: These policy alternatives can not be
satisfied:
{http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization}OptimizedMimeSerialization
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}TransportBinding:
TLS is not enabled
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}HttpsToken
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}TransportToken
at
org.apache.cxf.ws.policy.AbstractPolicyInterceptor.handleMessage(AbstractPolicyInterceptor.java:47)[137:org.apache.cxf.bundle:2.4.4]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[137:org.apache.cxf.bundle:2.4.4]
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[137:org.apache.cxf.bundle:2.4.4]
at
org.apache.servicemix.cxfbc.CxfBcConsumer$JbiChainInitiationObserver.onMessage(CxfBcConsumer.java:754)[184:servicemix-cxf-bc:2011.02.0]
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:319)[137:org.apache.cxf.bundle:2.4.4]
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:287)[137:org.apache.cxf.bundle:2.4.4]
at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[137:org.apache.cxf.bundle:2.4.4]
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:939)[96:org.eclipse.jetty.server:7.4.5.v20110725]
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[96:org.eclipse.jetty.server:7.4.5.v20110725]
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[96:org.eclipse.jetty.server:7.4.5.v20110725]
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)[96:org.eclipse.jetty.server:7.4.5.v20110725]
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)[96:org.eclipse.jetty.server:7.4.5.v20110725]
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[96:org.eclipse.jetty.server:7.4.5.v20110725]
at
org.eclipse.jetty.server.Server.handle(Server.java:346)[96:org.eclipse.jetty.server:7.4.5.v20110725]
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)[96:org.eclipse.jetty.server:7.4.5.v20110725]
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)[96:org.eclipse.jetty.server:7.4.5.v20110725]
at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823)[100:org.eclipse.jetty.http:7.4.5.v20110725]
at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)[100:org.eclipse.jetty.http:7.4.5.v20110725]
at
org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)[96:org.eclipse.jetty.server:7.4.5.v20110725]
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)[98:org.eclipse.jetty.io:7.4.5.v20110725]
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)[98:org.eclipse.jetty.io:7.4.5.v20110725]
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)[108:org.eclipse.jetty.util:7.4.5.v20110725]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]
Caused by: org.apache.cxf.ws.policy.PolicyException: These policy
alternatives can not be satisfied:
{http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization}OptimizedMimeSerialization
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}TransportBinding:
TLS is not enabled
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}HttpsToken
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}TransportToken
at
org.apache.cxf.ws.policy.AssertionInfoMap.checkEffectivePolicy(AssertionInfoMap.java:162)[137:org.apache.cxf.bundle:2.4.4]
at
org.apache.cxf.ws.policy.PolicyVerificationInInterceptor.handle(PolicyVerificationInInterceptor.java:99)[137:org.apache.cxf.bundle:2.4.4]
at
org.apache.cxf.ws.policy.AbstractPolicyInterceptor.handleMessage(AbstractPolicyInterceptor.java:45)[137:org.apache.cxf.bundle:2.4.4]
... 22 more
Is there any property like policies within the http:soap-provider we can set
for the cxf bc endpoint ?
We have also tried to implement our own interceptor for http:soap-provider
extending org.apache.servicemix.soap.core.AbstractInterceptor where we want
transform incoming message to some 'normal' form,
but we didn't find a way to register this interceptor to an endpoint. I have
found this thread :
http://servicemix.396122.n5.nabble.com/Problem-Interceptor-not-firing-td2808437.html#a2834520
where you suggest to put the definition of cxf:bus along with the
interceptor definition in the SU of that enpoint.
Woud you be so kind and provide some example how to do it ?
Thank you very much for your help.
Regards,
Mark
--
View this message in context:
http://servicemix.396122.n5.nabble.com/XOP-policy-within-http-soap-provider-tp5447119p5454169.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.