See this section please:

https://cwiki.apache.org/confluence/display/CXF20DOC/JAX-RS+Data+Bindings#JAX-RSDataBindings-Schemavalidation

Cheers, Sergey

On Wed, May 4, 2011 at 11:16 PM, yhu <[email protected]> wrote:
> As known, in CXF SOAP type web service,
>
>        <jaxws:properties>
>            < entry key="schema-validation-enabled" value="true"/>
>        </jaxws:properties>
>
> can be used in <jaxws:endpoint> to enable XML schema validation based on
> WSDL. By this, if an attribute is set required=true in WSDL, and it is
> missed in the SOAP, the following error message will return:
>
>      <soap:Fault>
>         <faultcode>soap:Client</faultcode>
>         <faultstring>Unmarshalling Error: cvc-complex-type.4: Attribute
> '***' must appear on element '***'.</faultstring>
>      </soap:Fault>
>
>
> Is there similar way for CXF Restful web service? In another word, how can
> we validate posted XML data against WADL?  I guess this can be configured
> through <jaxrs:server>, but I do not find out how to do that.
>
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/How-to-enable-xml-schema-validation-for-CXF-Restful-web-service-tp4371287p4371287.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Reply via email to