Skip to main content

WS-Policy and message predicates

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2006-11-21


I just found out that support for WS-Policy was integrated into JAX-WS 2.2. We run a few services that have policies integrated in their WSDL. Java clients never evaluated these up to JAX-WS 2.1. We're currently updating some clients to JAX-WS 2.2. I have a few questions now.

1.) Client-side: (How) can I turn off WS-Policy?
Unfortunately, clients crash with an exception, probably due to a bug in the policy implementation ( ). I'd like to avoid this by simply deactivating policy support (JAX-WS 2.1 behavior).

2.) Server-side: (How) can I implement a PolicyAssertionValidator that has access to incoming messages?
We use a custom policy assertion that restricts the content of the message body (in addition to the service schema). I tried to implement a custom validator for this, but it seems there's no way to route the message through the handler.

Kind regards,