Hi,
I have a WAR that contains the server (provider of a secure web service) and an EAR that contains the client (as a jar) and a war that implements a servlet to test the client.
EAR = client.jar + servlet.war
WAR = server.war
In the client I do
((StubExt)port).setSecurityConfig(new File("META-INF/jboss-wsse-client.xml").toURL().toExternalForm());
but I have a FileNotFound Error
<JBOSS_HOME>\bin\META-INF\jboss-wsse-client.xml
I also try with:
URL fileURL = this.getClass().getResource("META-INF/jboss-wsse-client.xml");
StubExt stub = (StubExt) port1;
stub.setSecurityConfig(fileURL.toExternalForm());
But in this way error is: fileURL is null
What I wrong? Please, can you help me?
Thanks in advance,