Hi,

One possible reason is that your server side servicemodel is built from class, but not from the wsdl file, so no chance to load the schema xsds to do the schema validation. Could you add wsdlLocation attribute for your jaxws:endpoint also to see if it helps?

Freeman
On 2012-1-16, at 下午5:40, Waleed Zedan wrote:

Hi,

I have added the end point with schema validation:
<jaxws:endpoint id="slmCallbackInterface"
implementor="#slmCallbackWebService"
implementorClass="com.ws.impl.SLMCallbackImpl"
address="/SLMCallbackInterface">
<jaxws:properties>
<entry key="schema-validation-enabled" value="true" />
</jaxws:properties>
</jaxws:endpoint>

The endpoint is referencing a bean implementation as mentioned above, but
the XSD input is not validated although the JAXB objects contain all
required = true and nillable = false

Any advice why CXF is not validating the input against the XSD definition
in the JAXB objects?

Thank you.

Best regards,

--
wz

---------------------------------------------
Freeman Fang

FuseSource
Email:ff...@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to