juan pablo [http://community.jboss.org/people/jplistero] replied to the 
discussion

"building a WS Client with WS-Security"

To view the discussion, visit: http://community.jboss.org/message/548318#548318

--------------------------------------------------------------
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"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";><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
[http://community.jboss.org/message/548318#548318]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to