Elena Me [
https://community.jboss.org/people/elename] created the discussion
"Re: referencing jboss-wsse-client.xml in WAR"
To view the discussion, visit:
https://community.jboss.org/message/762230#762230
--------------------------------------------------------------
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,
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/762230#762230]
Start a new discussion in JBoss Web Services at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]