Discussion:
[jboss-user] [JBoss Web Services] - WS-Policy sets
Stuart Smith
2013-07-11 03:22:38 UTC
Permalink
Stuart Smith [https://community.jboss.org/people/stuart_wildcat] created the discussion

"WS-Policy sets"

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

--------------------------------------------------------------
Just saw the post on the WS-Policy sets in the next major release and it is a great idea.  I'm writing some JBoss web service training for my company and we are actually suggesting to people that they go with Apache CXF configuration files (jbossws-cxf.xml) because the policy approach is so cryptic to code manually and tough to debug while the CXF approach has lots of good examples in CXF documentation.  Once standard policy sets are available we will definitely be suggesting that route since it would be much easier and it would show up (correctly) in the generated WSDL.

I think my biggest suggestion for this is to have a class or various constants that will have the "labels" of the prepackaged policy sets available.  If we need to specify it as a String it will still be easy to make a typo (especially typing out 'AsymmetricBinding_X509v1_TripleDesRsa15_EncryptBeforeSigning_ProtectTokens') so using a constant that the development tool code-assist can help me complete would be easy (and throw compile errors if incorrect).  This wouldn't replace the Strings but just be a shortcut way to make sure you are using the correct Strings.  It would also be a better way to discover what policy sets are available (just hit CTRL-Space in Eclipse and see what comes up).

I love all the advanced JBoss web service features that have been or are coming online.  You guys are sure giving us great stuff to use!

Thanks,
Stuart Smith
http://www.webagesolutions.com www.webagesolutions.com
--------------------------------------------------------------

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

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
Alessio Soldano
2013-07-11 07:10:51 UTC
Permalink
Alessio Soldano [https://community.jboss.org/people/asoldano] created the discussion

"Re: WS-Policy sets"

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

--------------------------------------------------------------
Hi Stuart,
thanks a lot for the feedback, very much appreciated.
I'll see what we can do to have the available policy set names in a constants class, I see what you mean.
Thanks
--------------------------------------------------------------

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

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
Alessio Soldano
2013-07-26 10:45:57 UTC
Permalink
Alessio Soldano [https://community.jboss.org/people/asoldano] created the discussion

"Re: WS-Policy sets"

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

--------------------------------------------------------------
https://docs.jboss.org/author/display/JBWS/WS-Policy https://docs.jboss.org/author/display/JBWS/WS-Policy

JBossWS 4.2.0.Final will come with org.jboss.wsf.stack.cxf.extensions.policy.Constants interface with a String constant for each available set.
--------------------------------------------------------------

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

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
Stuart Smith
2013-07-27 02:49:23 UTC
Permalink
Stuart Smith [https://community.jboss.org/people/stuart_wildcat] created the discussion

"Re: WS-Policy sets"

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

--------------------------------------------------------------
I missed the original reply but saw the follow-up.  Many thanks for the addition. 

I haven't really started looking at Java EE 7 in depth yet because I'm waiting for great servers like WildFly (still JBoss!) to come out with full support.  This will be one of the many things to look forward to.
--------------------------------------------------------------

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

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
Loading...