JBoss Community

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

created by Claudio Miranda in JBoss Web Services - View the full discussion

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

Start a new discussion in JBoss Web Services at Community