[jboss-user] [JBoss Web Services] - Re: referencing jboss-wsse-client.xml in WAR
Elena Me
do-not-reply at jboss.com
Fri Sep 28 11:03:50 EDT 2012
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&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120928/73f91773/attachment.html
More information about the jboss-user
mailing list