Hallo everyone!

I would like to use Apache CXF with webservice policies. So I want to use
some policy assertions, e.g. message predicates like that one: 

<wsp:ExactlyOne>
  <wsp:All>
    <wsp:MessagePredicate>
      count(wsp:GetBody(.)/*) > 0 
    </wsp:MessagePredicate>
  </wsp:All>
</wsp:ExactlyOne>

Can I use something like this in CXF? When I am using a very simple message
predicate (see below) I get this error message: 

"org.apache.cxf.interceptor.Fault: None of the policy alternatives can be
satisfied." 

<wsp:Policy wsu:Id="policy-600686d0-b855-4f6b-9dac-9218547d462c"> 
        <wsp:ExactlyOne>
                        <wsp:All>
                           <wsp:MessagePredicate wsp:Usage="wsp:Required">
                              wsp:Body() 
                           </wsp:MessagePredicate>
                        </wsp:All>
        </wsp:ExactlyOne>
</wsp:Policy>

Furthermore I get another error message during the start: 

WARNUNG: No assertion builder for type
{http://www.w3.org/ns/ws-policy}MessagePredicate registered. 

So where do I register this assertion builder?

I have already discovered this site:
http://cxf.apache.org/docs/ws-policy.html
And I have also found and used this sample:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_policy/

Therefore I would like to know how good the support of WSP is. Can I check
messages and their content, e.g. like in the example above? 

Thanks for any answers in advance!

Kind regards

Andi

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Apache-CXF-Policies-and-Message-Predicates-tp5618022p5618022.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to