[jboss-user] [JBoss Web Services] - Problem with WS Security encryption
Stefano Ficcadenti
do-not-reply at jboss.com
Thu Jun 10 04:21:39 EDT 2010
Stefano Ficcadenti [http://community.jboss.org/people/Samb1985] replied to the discussion
"Problem with WS Security encryption"
To view the discussion, visit: http://community.jboss.org/message/547289#547289
--------------------------------------------------------------
Thanks a lot !
Tracing security.auth I note that the issue was the syntax of second sql statement.
I correct it with: select userroles*,'Roles'* from "public"."UserRoles" where username = ? and now authentication with postgre sql database works well.
Now still remain the other problem of encryption in first post of this discussion.
The Web Service security implemented is as the chapter 9.5 (until 9.5.3 included of JBoss in Action), but I use a pojo java as client to consume and test the WS. I created the pojo with Eclipse Wizard to create a Web Service Client with JBossWS runtime (not Axis).
Then I add to client java all files indicated in chapter 9.5.3, but when I run it throw an exception that indicate wsse security required as it don't know the descriptor in META-INF.
So I found a discussion that indicate to use in client the follow code:
URL securityURL = Main.class.getResource("META-INF/jboss-wsse-client.xml");
((StubExt) port1).setSecurityConfig(securityURL.toExternalForm());
((StubExt) port1).setConfigName("Standard WSSecurity Client", "META-INF/standard-jaxws-client-config.xml");
But when I run it:
Exception in thread "main" java.lang.ClassCastException: $Proxy23 cannot be cast to org.jboss.ws.core.StubExt
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547289#547289]
Start a new discussion in JBoss Web Services at Community
[http://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/20100610/07afd120/attachment.html
More information about the jboss-user
mailing list