[jboss-user] [JBoss Web Services] - Re: @WS with CLIENT-CERT throws Invalid HTTP server response [401] - Unauthorized on client side

Claudio Miranda do-not-reply at jboss.com
Wed Mar 14 10:59:31 EDT 2012


Claudio Miranda [https://community.jboss.org/people/Claudio4J] created the discussion

"Re: @WS with CLIENT-CERT throws Invalid HTTP server response [401] - Unauthorized on client side"

To view the discussion, visit: https://community.jboss.org/message/723765#723765

--------------------------------------------------------------
>From the client log file I see that the it load the *Standard Client*, after then it loads correctlry the *Standard WSSecurity Client*.

Also, the client code uses the Standard WSSecurity Client.

        StubExt stubExt = (StubExt) wsPesq;
        stubExt.setConfigName("Standard WSSecurity Client");

DEBUG [main] - Create new config [name=Standard Client,file=META-INF/standard-jaxws-client-config.xml]
DEBUG [main] - getConfig: [name=Standard Client,url=META-INF/standard-jaxws-client-config.xml]
DEBUG [main] - parse: file:/home/claudio/alphaworks/projects/myapp/jaas/jaas-ms-client/bin/META-INF/standard-jaxws-client-config.xml



DEBUG [main] - Create new config [name=*Standard WSSecurity Client*,file=META-INF/standard-jaxws-client-config.xml]
DEBUG [main] - getConfig: [name=*Standard WSSecurity Client*,url=*META-INF/standard-jaxws-client-config.xml*]
DEBUG [main] - parse: *file:/home/claudio/alphaworks/projects/myapp/jaas/jaas-ms-client/bin/META-INF/standard-jaxws-client-config.xml*

Is that incorrect ? 

I modified as below, but didn't work, the exception is the same.

> URL wsseClientURL = Thread.currentThread().getContextClassLoader().getResource("META-INF/jboss-wsse-client.xml");
> stubExt.setSecurityConfig(wsseClientURL.toExternalForm());

*
*
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/723765#723765]

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/20120314/7247334c/attachment.html 


More information about the jboss-user mailing list