Hi,
Not all restrictions from xsd can map to the class, even with
annotations, like the string length, string content, etc, could you
elaborate what kind of validation you want to perform?
Freeman
On 2012-1-16, at 下午6:25, Waleed Zedan wrote:
Hi,
Yes it is created from class , but the method parameters are annotated
properly, should I validate the JAXB objects manually in this case
or is
there an option in CXF to perform this validation automatically?
Thank you.
On Mon, Jan 16, 2012 at 1:07 PM, Freeman Fang
<[email protected]>wrote:
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:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.**com <http://freemanfang.blogspot.com
>
--
wz
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com