On Thursday 04 December 2008 11:55:25 am Johnbosco, Lawrence wrote:
> Can anyone provide me a working example implementing WS-Policy embedded
> within the WSDL in CXF? So far, I couldn't find any detailed material
> regarding this.
Some of this is still a work in progress. For the most part, the first step
is to turn policy support on. By default, it's off:
<cxf:bus>
<cxf:features>
<p:policies/>
<cxf:logging/>
</cxf:features>
</cxf:bus>
Then, as long as the policies are understood, it should work.
I just committed a good "client side" example to our sandbox:
https://svn.apache.org/repos/asf/cxf/sandbox/interopfest/
It requires the 2.2-SNAPSHOT to be built locally first. (WS-SecurityPolicy
support is only in the 2.2-SNAPSHOTS) It also requires the strong crypto
stuff installed into your JDK. Basically, it's to test the interactions
with the Microsoft WCF Interopability Plug-Fest endpoints. See:
http://mssoapinterop.org/ilab/
for details. The policies for everything is embedded in the wsdls. We
just need to provide the extra missing stuff (like usernames, keystores,
etc...) in the configs.
I'm going to try and get the ws-sec 1.0 version committed there shortly and
that's where I'll be putting ws-trust/ws-secconv stuff as I get things
working.
--
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog