have you tested your deployed WS with WS client included?. We also tried and the test examples succesfully deployed but we never had success comunicating ws client with WS. the following error appears
java.rmi.RemoteException: Call invocation failed with code [InternalError] because of: An internal WS-Security error occurred. See log for details; nested exception is:
javax.xml.rpc.soap.SOAPFaultException: An internal WS-Security error occurred. See log for details
thanks in advance.
I was able to successfully deploy and run the JUnit test on the WS-Security example provided in the JBossWS "User Guide Samples."
I have also been able to successfully code and deploy an EJB based Web Service that requires WS-Security signatures.
However, I haven't been able to write a DII client to invoke that Web Service because it (obviously) requires a signed SOAP request and I don't know how to sign my requests.
Does that answer your question?
The client needs to use the ws-security handler from that is used in standard-jbossws-client-config.xml
<client-config> <config-name>Standard Secure Client</config-name> <post-handler-chain> <handler-chain-name>PostHandlerChain</handler-chain-name> <handler> <j2ee:handler-name>WSSecurityHandlerOutbound</j2ee:handler-name> <j2ee:handler-class>org.jboss.ws.wsse.WSSecurityHandlerOutbound</j2ee:handler-class> </handler> </post-handler-chain> </client-config>
How can I make my client use that handler?