Tim de Jager [http://community.jboss.org/people/tdejager] replied to the discussion
"Jboss ws-security, client configuration" To view the discussion, visit: http://community.jboss.org/message/543487#543487 -------------------------------------------------------------- Alright I have gotten a bit further. I fixed the class casting issue , but I'm now getting an exception: javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: An internal WS-Security error occurred. Can't find anything in the logs though. This is the code I am using for setting up the security on the client: URL securityURL = Main.class.getResource("META-INF/jboss-wsse-client.xml"); ((StubExt) port).setSecurityConfig(securityURL.toExternalForm()); ((StubExt) port).setConfigName("Standard WSSecurity Client", "META-INF/standard-jaxws-client-config.xml"); This is the wsse-client file I'm using: <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>META-INF/wsse.keystore</key-store-file> <key-store-password>secret</key-store-password> <trust-store-file>META-INF/wsse.truststore</trust-store-file> <trust-store-password>secret</trust-store-password> <key-passwords> <key-password alias="wss" password="secret" /> </key-passwords> <config> <sign type="x509v3" alias="wss"/> <requires> <signature/> </requires> </config> </jboss-ws-security> I'm using the same truststore and keystore for both the client and server... Could this be causing problems? Als does anyone happen to know how to actually get the internal ws-security exception? Tim -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/543487#543487] 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
