Community

Jboss ws-security, client configuration

reply from Stefano Ficcadenti in JBoss Web Services - View the full discussion

I also have same issue when I try to run a client:

 

URL securityURL = Main.class.getResource("META-INF/jboss-wsse-client.xml");
((StubExt) port1).setSecurityConfig(securityURL.toExternalForm());
  ((StubExt) port1).setConfigName("Standard WSSecurity Client", "META-INF/standard-jaxws-client-config.xml");

 

And cast don't work:

Exception in thread "main" java.lang.ClassCastException: $Proxy23 cannot be cast to org.jboss.ws.core.StubExt

 

How did you solve it ?

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community