manoj.java
2009-09-13 06:48:47 UTC
I am using cxf at server side to expose the web service.
I have used the org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor for
authentication.
Below is the my request XML which is generated from the Axis2 client. While
invoking the web service i am getting the following error.
[9/13/09 11:24:28:296 IST] 00000024 WSS4JInInterc W
org.apache.ws.security.WSSecurityException:
An error was discovered processing the <wsse:Security> header
at
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:200)
at
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:77)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:89)
at
org.mule.transport.cxf.CxfServiceComponent.sendToDestination(CxfServiceComponent.java:284)
at
org.mule.transport.cxf.CxfServiceComponent.onCall(CxfServiceComponent.java:112)
at
org.mule.model.resolvers.CallableEntryPointResolver.invoke(CallableEntryPointResolver.java:52)
at
org.mule.model.resolvers.DefaultEntryPointResolverSet.invoke(DefaultEntryPointResolverSet.java:50)
at
org.mule.component.DefaultLifecycleAdapter.invoke(DefaultLifecycleAdapter.java:205)
at
org.mule.component.AbstractJavaComponent.invokeComponentInstance(AbstractJavaComponent.java:83)
at
org.mule.component.AbstractJavaComponent.doInvoke(AbstractJavaComponent.java:74)
at
org.mule.component.AbstractComponent.invokeInternal(AbstractComponent.java:133)
at org.mule.component.AbstractComponent.invoke(AbstractComponent.java:161)
at
org.mule.service.AbstractService.invokeComponent(AbstractService.java:929)
at org.mule.model.seda.SedaService.doSend(SedaService.java:257)
at org.mule.service.AbstractService.sendEvent(AbstractService.java:500)
at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:354)
at
org.mule.routing.inbound.DefaultInboundRouterCollection.send(DefaultInboundRouterCollection.java:228)
at
org.mule.routing.inbound.DefaultInboundRouterCollection.route(DefaultInboundRouterCollection.java:188)
at
org.mule.transport.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:364)
at
org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:252)
at
org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:193)
at
org.mule.transport.http.HttpMessageReceiver$HttpWorker.doRequest(HttpMessageReceiver.java:273)
at
org.mule.transport.http.HttpMessageReceiver$HttpWorker.processRequest(HttpMessageReceiver.java:227)
at
org.mule.transport.http.HttpMessageReceiver$HttpWorker.run(HttpMessageReceiver.java:190)
at org.mule.work.WorkerContext.run(WorkerContext.java:310)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:797)
Here is the Request payload.
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
xmlns:wsse="http://schemas.xmlsoap.org/soap/envelope/"><wsse:Security><wsse:UsernameToken><wsse:Username>username</wsse:Username></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><ns3:AssessmentRequestMessage
xmlns:ns3="http://v1.service.assessment.services.optumhealth.com"><ProviderRequestor><FirstName>HRATestClientProviderFN</FirstName><LastName>HRATestClientProviderLN</LastName><ProviderIdentification><IdentificationValue>98765</IdentificationValue><IdentificationType>ProviderID</IdentificationType></ProviderIdentification><ProviderIdentification><IdentificationValue>88765</IdentificationValue><IdentificationType>FedTaxID</IdentificationType></ProviderIdentification><ProviderIdentification><IdentificationValue>78765</IdentificationValue><IdentificationType>NationalProviderID</IdentificationType></ProviderIdentification></ProviderRequestor><ManagedPersonCriteria><FirstName>Manoj</FirstName><LastName>Singh</LastName><DateOfBirth>1951-01-15+05:30</DateOfBirth><ManagedPersonIdentification><IdentificationValue>111042913973</IdentificationValue><IdentificationType>MemberID</IdentificationType></ManagedPersonIdentification><StateCode>TN</StateCode></ManagedPersonCriteria></ns3:AssessmentRequestMessage></soapenv:Body></soapenv:Envelope>
I have used the org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor for
authentication.
Below is the my request XML which is generated from the Axis2 client. While
invoking the web service i am getting the following error.
[9/13/09 11:24:28:296 IST] 00000024 WSS4JInInterc W
org.apache.ws.security.WSSecurityException:
An error was discovered processing the <wsse:Security> header
at
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:200)
at
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:77)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:89)
at
org.mule.transport.cxf.CxfServiceComponent.sendToDestination(CxfServiceComponent.java:284)
at
org.mule.transport.cxf.CxfServiceComponent.onCall(CxfServiceComponent.java:112)
at
org.mule.model.resolvers.CallableEntryPointResolver.invoke(CallableEntryPointResolver.java:52)
at
org.mule.model.resolvers.DefaultEntryPointResolverSet.invoke(DefaultEntryPointResolverSet.java:50)
at
org.mule.component.DefaultLifecycleAdapter.invoke(DefaultLifecycleAdapter.java:205)
at
org.mule.component.AbstractJavaComponent.invokeComponentInstance(AbstractJavaComponent.java:83)
at
org.mule.component.AbstractJavaComponent.doInvoke(AbstractJavaComponent.java:74)
at
org.mule.component.AbstractComponent.invokeInternal(AbstractComponent.java:133)
at org.mule.component.AbstractComponent.invoke(AbstractComponent.java:161)
at
org.mule.service.AbstractService.invokeComponent(AbstractService.java:929)
at org.mule.model.seda.SedaService.doSend(SedaService.java:257)
at org.mule.service.AbstractService.sendEvent(AbstractService.java:500)
at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:354)
at
org.mule.routing.inbound.DefaultInboundRouterCollection.send(DefaultInboundRouterCollection.java:228)
at
org.mule.routing.inbound.DefaultInboundRouterCollection.route(DefaultInboundRouterCollection.java:188)
at
org.mule.transport.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:364)
at
org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:252)
at
org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:193)
at
org.mule.transport.http.HttpMessageReceiver$HttpWorker.doRequest(HttpMessageReceiver.java:273)
at
org.mule.transport.http.HttpMessageReceiver$HttpWorker.processRequest(HttpMessageReceiver.java:227)
at
org.mule.transport.http.HttpMessageReceiver$HttpWorker.run(HttpMessageReceiver.java:190)
at org.mule.work.WorkerContext.run(WorkerContext.java:310)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:797)
Here is the Request payload.
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
xmlns:wsse="http://schemas.xmlsoap.org/soap/envelope/"><wsse:Security><wsse:UsernameToken><wsse:Username>username</wsse:Username></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><ns3:AssessmentRequestMessage
xmlns:ns3="http://v1.service.assessment.services.optumhealth.com"><ProviderRequestor><FirstName>HRATestClientProviderFN</FirstName><LastName>HRATestClientProviderLN</LastName><ProviderIdentification><IdentificationValue>98765</IdentificationValue><IdentificationType>ProviderID</IdentificationType></ProviderIdentification><ProviderIdentification><IdentificationValue>88765</IdentificationValue><IdentificationType>FedTaxID</IdentificationType></ProviderIdentification><ProviderIdentification><IdentificationValue>78765</IdentificationValue><IdentificationType>NationalProviderID</IdentificationType></ProviderIdentification></ProviderRequestor><ManagedPersonCriteria><FirstName>Manoj</FirstName><LastName>Singh</LastName><DateOfBirth>1951-01-15+05:30</DateOfBirth><ManagedPersonIdentification><IdentificationValue>111042913973</IdentificationValue><IdentificationType>MemberID</IdentificationType></ManagedPersonIdentification><StateCode>TN</StateCode></ManagedPersonCriteria></ns3:AssessmentRequestMessage></soapenv:Body></soapenv:Envelope>
--
View this message in context: http://www.nabble.com/Unable-to-process-%3Cwsse%3ASecurity%3E-header-tp25420988p25420988.html
Sent from the cxf-user mailing list archive at Nabble.com.
View this message in context: http://www.nabble.com/Unable-to-process-%3Cwsse%3ASecurity%3E-header-tp25420988p25420988.html
Sent from the cxf-user mailing list archive at Nabble.com.