Hi

> I had some problems with Sun's Metro in conjunction with Spring and
> Hibernate so I switched back to CXF.

Interesting :-). I think you can definitely use Spring and Hibernate in CXF.
But as far as WS-Policy is concerned, in CXF you just need to put policy 
expressions, those starting with
wsp:Policy explicitly in WSDL, say, as children of wsdl:service/wsdl:port. So 
you can use your Spring injection, but the only limitation is that the policy 
expressions need to reside in a given WSDL document.

It should work just fine...Now, Metro has a better domain-specific WS-Policy 
support (specifically WS-SecurityPolicy), but the policy expressions which you 
listed will work in CXF AFAIK... 

Cheers, Sergey


> 
> Hello Sergey,
> 
> 
> Sergey Beryozkin wrote:
>> 
>> I'm sorry to say it but I've never got to ensuring that for java-first
>> services WS-Policy expressions get automatically added to a (generated)
>> WSDL. I can't commit myself to fixing this issue at this stage, but
>> whenever I get a chance to look at a WS-Policy stuff, I'll get it fixed
>> first as it's obvious it's a major blocket to utilizing the CXF WS-Policy
>> framework at a wider scale.
>> 
>> Current WS-Policy implementation is a bit complicated, but the fix for
>> this issue should be reasonably simple, it would probably require an
>> update to a WS-PolicyFeature implementation which should register the
>> policy extensors it discovers from a spring configuration with either the
>> Endpoint or WSDLManager...
>> 
> 
> Now I'm a little bit confused. After reading [1] I thought it would be
> possible to configure the WS-Policy with Spring. I just couldn't get it
> working because of some exceptions (I can post them in a few hours if you
> need them) that Spring was throwing at me. ;-)
> So, are you saying it currently can't be done at all? That would be too bad.
> I had some problems with Sun's Metro in conjunction with Spring and
> Hibernate so I switched back to CXF. It looks like I can't use both of them.
> Writing my own patch is not possible since I need a solution within the next
> few days.
> 
> Would it work if I used WSDL first? However, I guess I won't be able to use
> Spring's dependency injection then, will I? :-(
> 
> [1] http://netzooid.com/blog/2007/04/23/cxf-spring-and-ws-policy-internals/
> -- 
> View this message in context: 
> http://www.nabble.com/CXF%2C-WS-Policy-and-Spring-tp16718063p16721675.html
> Sent from the cxf-user mailing list archive at Nabble.com.

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to