[JBossWS] - Using the jboss-ws-security with signature breaks when the l
by MichaW
We have developed a webservice and want to use a signature as security. This sometimes gives an error: Signature is invalid.
It appears to be related to the loglevel of the org.jboss.ws package.
We have done some testing with different levels of logging on that package. Here is what we get:
Client log level: DEBUG and service log level: INFO throws exception on the client side.
Client log level: DEBUG and service log level: DEBUG works fine.
Client log level: INFO and service log level: DEBUG throws exception on the service side.
Client log level: INFO and service log level: INFO throws exception on the service side.
We have tested this with different environments
application server: jboss-4.2.1.GA or jboss-4.2.2.GA
ws: jbossws-native-2.0.2.GA or jbossws-native-2.0.1.GA
jboss-wsse-server.xml:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
<key-store-file>WEB-INF/wsse.keystore</key-store-file>
<key-store-password>jbossws</key-store-password>
<trust-store-file>WEB-INF/wsse.truststore</trust-store-file>
<trust-store-password>jbossws</trust-store-password>
</jboss-ws-security>
jboss-wsse-client.xml:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
<key-store-file>WEB-INF/wsse.keystore</key-store-file>
<key-store-password>jbossws</key-store-password>
<trust-store-file>WEB-INF/wsse.truststore</trust-store-file>
<trust-store-password>jbossws</trust-store-password>
</jboss-ws-security>
Service side exception:
09:54:04,781 WARN [Reference] Verification failed for URI "#element-64-1199955244687-5289337"
09:54:04,781 INFO [Reference] Verification successful for URI "#timestamp"
09:59:56,562 ERROR [WSSecurityDispatcher] Internal error occured handling inbound message:
org.jboss.ws.extensions.security.FailedCheckException: Signature is invalid.
at org.jboss.ws.extensions.security.SignatureVerificationOperation.process(SignatureVerificationOperation.java:59)
at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:123)
at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:185)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:147)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41)
at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87)
at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126)
at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:414)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:273)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:190)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:123)
at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
09:59:56,562 ERROR [HandlerChainExecutor] Exception during handler processing
org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid.
at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:105)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:177)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41)
at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87)
at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126)
at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:414)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:273)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:190)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:123)
at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
09:59:56,562 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid.
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155)
at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87)
at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126)
at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:414)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:273)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:190)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:123)
at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid.
at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:105)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:177)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41)
at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
... 27 more
09:59:56,562 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid.
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155)
at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87)
at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126)
at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:414)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:273)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:190)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:123)
at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid.
at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:105)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:177)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41)
at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
... 27 more
Client side exception:
10:07:37,578 WARN [Reference] Verification failed for URI "#element-49-1199956057062-17250248"
10:07:37,593 INFO [Reference] Verification successful for URI "#timestamp"
10:07:37,593 ERROR [WSSecurityDispatcher] Internal error occured handling inbound message:
org.jboss.ws.extensions.security.FailedCheckException: Signature is invalid.
at org.jboss.ws.extensions.security.SignatureVerificationOperation.process(SignatureVerificationOperation.java:59)
at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:123)
at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:185)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:147)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handleInbound(WSSecurityHandlerClient.java:40)
at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
at org.jboss.ws.core.jaxws.client.ClientImpl.callResponseHandlerChain(ClientImpl.java:168)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:363)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
at $Proxy80.zoekPeilpuntenWoning(Unknown Source)
at nl.denhaag.gbd.services.peilpuntenservice.client.PeilpuntenServiceClient.zoekPeilpuntenWoning(PeilpuntenServiceClient.java:292)
at nl.denhaag.gbd.services.peilpuntenservice.client.PeilpuntenServiceClient.zoekPeilpuntenWoning(PeilpuntenServiceClient.java:211)
at nl.denhaag.gbd.mgov.common.manager.core.WoningManagerWS.zoekPeilpuntenVoorWijkObjectSoortQuery(WoningManagerWS.java:206)
at nl.denhaag.gbd.mgov.common.manager.core.WoningManagerWS.zoekPeilpunten(WoningManagerWS.java:90)
at nl.denhaag.gbd.mgov.pp.won.opnm.component.PPOpnemenWoningenZoeken.executeQuery(PPOpnemenWoningenZoeken.java:178)
at nl.denhaag.gbd.mgov.pp.won.opnm.component.PPOpnemenWoningenZoeken.getQueryResult(PPOpnemenWoningenZoeken.java:153)
at nl.denhaag.gbd.mgov.common.component.ZoekComponent.processRequest(ZoekComponent.java:509)
at com.novell.afw.component.core.EboComponentContainer.performInteraction(EboComponentContainer.java:128)
at com.novell.afw.component.core.EboComponentContainer.performBlockingInteraction(EboComponentContainer.java:154)
at com.novell.afw.portal.proxy.EboPortletContainerProxy.performBlockingInteraction(EboPortletContainerProxy.java:185)
at com.novell.afw.portal.aggregation.EboPortletProxyHelper.callPortletActionRequest(EboPortletProxyHelper.java:468)
at com.novell.afw.portal.aggregation.EboPortalAggregationControllerImpl.checkAndHandleActionURLType(EboPortalAggregationControllerImpl.java:1
75)
at com.novell.afw.portal.aggregation.EboPortalAggregationControllerImpl.initiateRendering(EboPortalAggregationControllerImpl.java:1249)
at com.novell.afw.portal.aggregation.EboPortalAggregationControllerImpl.renderPortalPIDResponse(EboPortalAggregationControllerImpl.java:871)
at com.novell.afw.portal.aggregation.EboPortalAggregationServlet.handlePIDPagesRequest(EboPortalAggregationServlet.java:801)
at com.novell.afw.portal.aggregation.EboPortalAggregationServlet.callService(EboPortalAggregationServlet.java:210)
at com.novell.afw.portal.aggregation.EboPortalAggregationServlet.doPost(EboPortalAggregationServlet.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.denhaag.gbd.filter.GZIPFilter.doFilter(GZIPFilter.java:34)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.novell.afw.portal.xforms.EboXFormClientDetectionFilter.doFilter(EboXFormClientDetectionFilter.java:85)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.denhaag.gbd.filter.HeaderFilter.doFilter(HeaderFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.denhaag.gbd.security.auth.spi.UserFilter.doFilter(UserFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
10:07:37,671 ERROR [HandlerChainExecutor] Exception during handler processing
org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid.
at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:105)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:177)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handleInbound(WSSecurityHandlerClient.java:40)
at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
at org.jboss.ws.core.jaxws.client.ClientImpl.callResponseHandlerChain(ClientImpl.java:168)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:363)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
at $Proxy80.zoekPeilpuntenWoning(Unknown Source)
at nl.denhaag.gbd.services.peilpuntenservice.client.PeilpuntenServiceClient.zoekPeilpuntenWoning(PeilpuntenServiceClient.java:292)
at nl.denhaag.gbd.services.peilpuntenservice.client.PeilpuntenServiceClient.zoekPeilpuntenWoning(PeilpuntenServiceClient.java:211)
at nl.denhaag.gbd.mgov.common.manager.core.WoningManagerWS.zoekPeilpuntenVoorWijkObjectSoortQuery(WoningManagerWS.java:206)
at nl.denhaag.gbd.mgov.common.manager.core.WoningManagerWS.zoekPeilpunten(WoningManagerWS.java:90)
at nl.denhaag.gbd.mgov.pp.won.opnm.component.PPOpnemenWoningenZoeken.executeQuery(PPOpnemenWoningenZoeken.java:178)
at nl.denhaag.gbd.mgov.pp.won.opnm.component.PPOpnemenWoningenZoeken.getQueryResult(PPOpnemenWoningenZoeken.java:153)
at nl.denhaag.gbd.mgov.common.component.ZoekComponent.processRequest(ZoekComponent.java:509)
at com.novell.afw.component.core.EboComponentContainer.performInteraction(EboComponentContainer.java:128)
at com.novell.afw.component.core.EboComponentContainer.performBlockingInteraction(EboComponentContainer.java:154)
at com.novell.afw.portal.proxy.EboPortletContainerProxy.performBlockingInteraction(EboPortletContainerProxy.java:185)
at com.novell.afw.portal.aggregation.EboPortletProxyHelper.callPortletActionRequest(EboPortletProxyHelper.java:468)
at com.novell.afw.portal.aggregation.EboPortalAggregationControllerImpl.checkAndHandleActionURLType(EboPortalAggregationControllerImpl.java:1
75)
at com.novell.afw.portal.aggregation.EboPortalAggregationControllerImpl.initiateRendering(EboPortalAggregationControllerImpl.java:1249)
at com.novell.afw.portal.aggregation.EboPortalAggregationControllerImpl.renderPortalPIDResponse(EboPortalAggregationControllerImpl.java:871)
at com.novell.afw.portal.aggregation.EboPortalAggregationServlet.handlePIDPagesRequest(EboPortalAggregationServlet.java:801)
at com.novell.afw.portal.aggregation.EboPortalAggregationServlet.callService(EboPortalAggregationServlet.java:210)
at com.novell.afw.portal.aggregation.EboPortalAggregationServlet.doPost(EboPortalAggregationServlet.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.denhaag.gbd.filter.GZIPFilter.doFilter(GZIPFilter.java:34)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.novell.afw.portal.xforms.EboXFormClientDetectionFilter.doFilter(EboXFormClientDetectionFilter.java:85)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.denhaag.gbd.filter.HeaderFilter.doFilter(HeaderFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.denhaag.gbd.security.auth.spi.UserFilter.doFilter(UserFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
10:07:37,796 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid.
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155)
at org.jboss.ws.core.jaxws.client.ClientImpl.callResponseHandlerChain(ClientImpl.java:168)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:363)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
at $Proxy80.zoekPeilpuntenWoning(Unknown Source)
at nl.denhaag.gbd.services.peilpuntenservice.client.PeilpuntenServiceClient.zoekPeilpuntenWoning(PeilpuntenServiceClient.java:292)
at nl.denhaag.gbd.services.peilpuntenservice.client.PeilpuntenServiceClient.zoekPeilpuntenWoning(PeilpuntenServiceClient.java:211)
at nl.denhaag.gbd.mgov.common.manager.core.WoningManagerWS.zoekPeilpuntenVoorWijkObjectSoortQuery(WoningManagerWS.java:206)
at nl.denhaag.gbd.mgov.common.manager.core.WoningManagerWS.zoekPeilpunten(WoningManagerWS.java:90)
at nl.denhaag.gbd.mgov.pp.won.opnm.component.PPOpnemenWoningenZoeken.executeQuery(PPOpnemenWoningenZoeken.java:178)
at nl.denhaag.gbd.mgov.pp.won.opnm.component.PPOpnemenWoningenZoeken.getQueryResult(PPOpnemenWoningenZoeken.java:153)
at nl.denhaag.gbd.mgov.common.component.ZoekComponent.processRequest(ZoekComponent.java:509)
at com.novell.afw.component.core.EboComponentContainer.performInteraction(EboComponentContainer.java:128)
at com.novell.afw.component.core.EboComponentContainer.performBlockingInteraction(EboComponentContainer.java:154)
at com.novell.afw.portal.proxy.EboPortletContainerProxy.performBlockingInteraction(EboPortletContainerProxy.java:185)
at com.novell.afw.portal.aggregation.EboPortletProxyHelper.callPortletActionRequest(EboPortletProxyHelper.java:468)
at com.novell.afw.portal.aggregation.EboPortalAggregationControllerImpl.checkAndHandleActionURLType(EboPortalAggregationControllerImpl.java:1
75)
at com.novell.afw.portal.aggregation.EboPortalAggregationControllerImpl.initiateRendering(EboPortalAggregationControllerImpl.java:1249)
at com.novell.afw.portal.aggregation.EboPortalAggregationControllerImpl.renderPortalPIDResponse(EboPortalAggregationControllerImpl.java:871)
at com.novell.afw.portal.aggregation.EboPortalAggregationServlet.handlePIDPagesRequest(EboPortalAggregationServlet.java:801)
at com.novell.afw.portal.aggregation.EboPortalAggregationServlet.callService(EboPortalAggregationServlet.java:210)
at com.novell.afw.portal.aggregation.EboPortalAggregationServlet.doPost(EboPortalAggregationServlet.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.denhaag.gbd.filter.GZIPFilter.doFilter(GZIPFilter.java:34)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.novell.afw.portal.xforms.EboXFormClientDetectionFilter.doFilter(EboXFormClientDetectionFilter.java:85)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.denhaag.gbd.filter.HeaderFilter.doFilter(HeaderFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.denhaag.gbd.security.auth.spi.UserFilter.doFilter(UserFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid.
at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:105)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:177)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handleInbound(WSSecurityHandlerClient.java:40)
at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
... 56 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118541#4118541
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118541
17 years
[JBossWS] - Is this a valid JAX-WS binding file for wsconsume?
by Brad Marshall
I want wsconsume to do custom package to namespace mappings using the --binding option. I have no experience writing JAX-WS binding files. I created the one listed below, and while wsconsume generates no errors, it also ignores the the pacjage-namespace attributes in the file. What have I got wrong?
(Note that these same parameters, restructured for Axis and with escaping the colons, work with the Axis Wsdl2Java tool as a NsToPkg.properties file.)
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
| <jaxws:bindings xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
| wsdlLocation="CA.wsdl"
| xmlns:jaxws="http://java.sun.com/xml/ns/jaxws">
| <jaxws:package-namespace package="ca.webservice.valueobj.cse" namespace="urn:lm:tscse"/>
| <jaxws:package-namespace package="ca.webservice.request" namespace="urn:lm:tsqikreq"/>
| <jaxws:package-namespace package="ca.webservice.response" namespace="urn:lm:tsqikrsp"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.ca" namespace="urn:anyco:tsca"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.ca" namespace="urn:anyco:tscsact"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.ci" namespace="urn:anyco:tsci"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.ci" namespace="urn:anyco:tscis"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.cp" namespace="urn:anyco:tscp"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.cp" namespace="urn:anyco:tscspt"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.fn" namespace="urn:anyco:tsfn"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.fn" namespace="urn:anyco:tsfin"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.id" namespace="urn:anyco:tsidy"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.header" namespace="urn:anyco:tschdr"/>
| <jaxws:package-namespace package="ca.webservice.caws" namespace="http://www.anyco.com/wsdl/CA.wsdl"/>
| <jaxws:package-namespace package="ca.webservice.caws" namespace="http://www.anyco.com/wsdl/CA.xsd"/>
| </jaxws:bindings>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118423#4118423
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118423
17 years
[JBossWS] - More soap:address problems
by justinkwaugh
I am having two specific problems with the auto generated/replaced soap:address element in the wsdl.
1. I cannot get it to say https:// instead of http://.
Some suggestions I've seen on the forums here are deprecated (Use of annotations that don't exist anymore) and all are related to setting the transport guarantee (which doesn't seem to have any effect anyway). My setup is apache talking to jboss through jkmount, and i'm using a POJO endpoint. I really love the idea of the address rewriting as configured in the jboss-ws.sar/META-INF/jboss-beans.xml but it does not rewrite the protocol, only the hostname:port/path. I glanced at the code, and it plainly just ignores the incoming request protocol. Why is this? If I am accessing it via an https:// URL, why would it not rewrite it using https://?
2. The path to the endpoint is plain wrong.
I have a context root specified in the jboss-web.xml of my war, and that is all it uses no matter what. It simply ignores the servlet name and rewrites the path with just the context-root even when I specify my own WSDL in the @WebService annotation. My servlet is specified in the web.xml as follows..
| <servlet>
| <servlet-name>MyWebservice</servlet-name>
| <servlet-class>com.mycompany.webservices.MyWebservice</servlet-class>
| </servlet>
| <servlet-mapping>
| <servlet-name>MyWebservice</servlet-name>
| <url-pattern>/*</url-pattern>
| </servlet-mapping>
|
My jboss-web.xml has the following:
| <jboss-web>
| <context-root>webservice</context-root>
| </jboss-web>
|
The correct endpoint should be
https://myhost:443/webservice/MyWebservice
but no matter what I do, it rewrites it to just
https://myhost:443/webservice
Are there any configurations I've overlooked that can resolve these 2 problems?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118341#4118341
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118341
17 years
[JBossWS] - Re: SoapFault on returning the web service response
by richard.opalka@jboss.com
This is the generated WSDL
<definitions name="SpamService" targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <types>
| <xs:schema targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" version="1.0" xmlns:tns="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
| <xs:element name="processSpamComplaints" type="tns:processSpamComplaints"/>
| <xs:element name="processSpamComplaintsResponse" type="tns:processSpamComplaintsResponse"/>
| <xs:complexType name="processSpamComplaints">
| <xs:sequence>
| <xs:element minOccurs="0" name="email" type="xs:string"/>
| <xs:element minOccurs="0" name="fromAddress" type="xs:string"/>
| <xs:element minOccurs="0" name="mailDate" type="xs:string"/>
| <xs:element minOccurs="0" name="complaintDate" type="xs:string"/>
| <xs:element minOccurs="0" name="mailbox" type="xs:string"/>
| <xs:element minOccurs="0" name="complainer" type="xs:string"/>
| <xs:element minOccurs="0" name="xRext" type="xs:string"/>
| <xs:element minOccurs="0" name="accountName" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType name="processSpamComplaintsResponse">
| <xs:sequence>
| <xs:element minOccurs="0" name="SpamResult" type="tns:SpamResult"/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType final="extension restriction" name="SpamResult">
| <xs:sequence>
| <xs:element name="email" nillable="true" type="xs:string"/>
| <xs:element name="fromAddress" nillable="true" type="xs:string"/>
| <xs:element name="mailDate" nillable="true" type="xs:string"/>
| <xs:element name="complaintDate" nillable="true" type="xs:string"/>
| <xs:element name="mailbox" nillable="true" type="xs:string"/>
| <xs:element name="complainer" nillable="true" type="xs:string"/>
| <xs:element name="xRext" nillable="true" type="xs:string"/>
| <xs:element name="accountName" nillable="true" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| </xs:schema>
| </types>
| <message name="SpamComplaintWS_processSpamComplaints">
| <part element="tns:processSpamComplaints" name="processSpamComplaints"/>
| </message>
| <message name="SpamComplaintWS_processSpamComplaintsResponse">
| <part element="tns:processSpamComplaintsResponse" name="processSpamComplaintsResponse"/>
| </message>
| <portType name="SpamComplaintWS">
| <operation name="processSpamComplaints" parameterOrder="processSpamComplaints">
| <input message="tns:SpamComplaintWS_processSpamComplaints"/>
| <output message="tns:SpamComplaintWS_processSpamComplaintsResponse"/>
| </operation>
| </portType>
| <binding name="SpamComplaintWSBinding" type="tns:SpamComplaintWS">
| <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
| <operation name="processSpamComplaints">
| <soap:operation soapAction=""/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
| </binding>
| <service name="SpamService">
| <port binding="tns:SpamComplaintWSBinding" name="SpamComplaintWSPort">
| <soap:address location="http://localhost.localdomain:8080/jaxws-jbws1845/SpamService"/>
| </port>
| </service>
| </definitions>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118316#4118316
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118316
17 years
[JBossWS] - Re: SoapFault on returning the web service response
by richard.opalka@jboss.com
Hi,
I followed your usecase and here are the source codes I created:
package org.jboss.test.ws.jaxws.jbws1845;
|
| import javax.ejb.Stateless;
| import javax.jws.WebMethod;
| import javax.jws.WebParam;
| import javax.jws.WebResult;
| import javax.jws.WebService;
| import javax.xml.ws.ResponseWrapper;
|
| import org.jboss.wsf.spi.annotation.WebContext;
|
| @Stateless
| @WebService
| (
| targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0",
| serviceName="SpamService"
| )
| @WebContext
| (
| transportGuarantee="NONE",
| contextRoot="/jaxws-jbws1845",
| urlPattern="/SpamService"
| )
| public final class SpamComplaintWS implements SpamComplaintWSIface
| {
| @WebMethod(operationName="processSpamComplaints")
| @WebResult(name="SpamResult")
| @ResponseWrapper(className="org.jboss.test.ws.jaxws.jbws1845.jaxws.SpamResult")
| public SpamResult processSpamComplaints(
| @WebParam(name = "email") String email,
| @WebParam(name = "fromAddress") String fromAddress,
| @WebParam(name = "mailDate") String mailDate,
| @WebParam(name = "complaintDate") String complaintDate,
| @WebParam(name = "mailbox") String mailbox,
| @WebParam(name = "complainer") String complainer,
| @WebParam(name = "xRext") String xRext,
| @WebParam(name = "accountName") String accountName)
| {
| return new SpamResult(email, fromAddress, mailDate, complaintDate, mailbox, complainer, xRext, accountName);
| }
| }
|
package org.jboss.test.ws.jaxws.jbws1845;
|
| import javax.ejb.Remote;
| import javax.jws.WebMethod;
| import javax.jws.WebParam;
| import javax.jws.WebResult;
| import javax.jws.WebService;
| import javax.xml.ws.ResponseWrapper;
|
| @Remote
| @WebService
| public interface SpamComplaintWSIface
| {
| @WebMethod(operationName="processSpamComplaints")
| @WebResult(name="SpamResult")
| @ResponseWrapper(className="org.jboss.test.ws.jaxws.jbws1845.jaxws.SpamResult")
| public SpamResult processSpamComplaints(
| @WebParam(name = "email") String email,
| @WebParam(name = "fromAddress") String fromAddress,
| @WebParam(name = "mailDate") String mailDate,
| @WebParam(name = "complaintDate") String complaintDate,
| @WebParam(name = "mailbox") String mailbox,
| @WebParam(name = "complainer") String complainer,
| @WebParam(name = "xRext") String xRext,
| @WebParam(name = "accountName") String accountName
| );
| }
|
package org.jboss.test.ws.jaxws.jbws1845;
|
| import javax.xml.bind.annotation.XmlAccessType;
| import javax.xml.bind.annotation.XmlAccessorType;
| import javax.xml.bind.annotation.XmlElement;
| import javax.xml.bind.annotation.XmlType;
|
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "SpamResult", propOrder = {
| "email",
| "fromAddress",
| "mailDate",
| "complaintDate",
| "mailbox",
| "complainer",
| "xRext",
| "accountName"
| })
| public final class SpamResult
| {
| @XmlElement(required = true, nillable = true)
| protected String email;
| @XmlElement(required = true, nillable = true)
| protected String fromAddress;
| @XmlElement(required = true, nillable = true)
| protected String mailDate;
| @XmlElement(required = true, nillable = true)
| protected String complaintDate;
| @XmlElement(required = true, nillable = true)
| protected String mailbox;
| @XmlElement(required = true, nillable = true)
| protected String complainer;
| @XmlElement(required = true, nillable = true)
| protected String xRext;
| @XmlElement(required = true, nillable = true)
| protected String accountName;
|
| public SpamResult()
| {
| }
|
| public SpamResult(String email, String fromAddress, String mailDate, String complaintDate, String mailbox, String complainer, String xRext, String accountName)
| {
| this.email = email;
| this.fromAddress = fromAddress;
| this.mailDate = mailDate;
| this.complaintDate = complaintDate;
| this.mailbox = mailbox;
| this.complainer = complainer;
| this.xRext = xRext;
| this.accountName = accountName;
| }
|
| public String[] get()
| {
| return new String[] { email, fromAddress, mailDate, complaintDate, mailbox, complainer, xRext, accountName };
| }
| }
|
package org.jboss.test.ws.jaxws.jbws1845;
|
| import java.net.URL;
| import javax.xml.namespace.QName;
| import javax.xml.ws.Service;
| import junit.framework.Test;
| import org.jboss.wsf.test.JBossWSTest;
| import org.jboss.wsf.test.JBossWSTestSetup;
|
| public final class JBWS1845TestCase extends JBossWSTest
| {
| public static Test suite()
| {
| return new JBossWSTestSetup(JBWS1845TestCase.class, "jaxws-jbws1845.jar");
| }
|
| public void testIssue() throws Exception
| {
| QName serviceName = new QName("http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0", "SpamService");
| URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws1845/SpamService?wsdl");
|
| Service service = Service.create(wsdlURL, serviceName);
| SpamComplaintWSIface proxy = (SpamComplaintWSIface)service.getPort(SpamComplaintWSIface.class);
|
| String[] orig = { "email", "fromAddress", "mailDate", "complaintDate", "mailbox", "complainer", "xRext", "accountName"};
| String[] returned = proxy.processSpamComplaints(orig[0], orig[1], orig[2], orig[3], orig[4], orig[5], orig[6], orig[7]).get();
| for (int i = 0; i < orig.length; i++)
| {
| assertEquals(orig, returned);
| }
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118314#4118314
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118314
17 years