Community

building a WS Client with WS-Security

reply from juan pablo in JBoss Web Services - View the full discussion

I change

 

 

 

 

 

((StubExt) port).setConfigName("Standard WSSecurity Client","/home/jp/workspace1/
myProject
/src/META-INF/jboss-wsse-client.xml");
to 
((StubExt) port).setConfigName("Standard WSSecurity Client");
and I build a a TrustStore with the ca root ... alias server.

then I change
jboss-wsse-client.xml to:
<jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
<config>
<sign type="x509v3" alias="1" />
<encrypt type="x509v3" alias="server" />
<requires>
<encription/>
<signature/>
</requires>
</config>
</jboss-ws-security>
If I sniff with a wireshark I see the response ...
but in the code I have this exception when I invoke the method:
javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: An internal WS-Security error occurred. See log for details
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:309)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:176)
at org.jboss.ws.core.jaxws.client.ClientImpl.callRequestHandlerChain(ClientImpl.java:181)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:322)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:181)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:161)
at $Proxy21.autorizarVentaTicket(Unknown Source)
at otroMain.Client.llamadoEstaticoComplejo(Client.java:129)
at otroMain.Client.main(Client.java:46)
Caused by: org.jboss.ws.core.CommonSOAPFaultException: An internal WS-Security error occurred. See log for details
at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:270)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.encodeMessage(WSSecurityDispatcher.java:232)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleOutboundSecurity(WSSecurityHandler.java:104)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handleOutbound(WSSecurityHandlerClient.java:43)
at org.jboss.wsf.common.handler.GenericHandler.handleMessage(GenericHandler.java:53)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:328)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:146)
... 8 more
Any ideas what is happing ?

thanks!

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community