cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: Schema validation in CXF...
Date Thu, 04 Nov 2010 19:51:53 GMT
Yes. For certain if you use JAX-WS and JAX-B. Probably with Aegis.

On Thu, Nov 4, 2010 at 3:49 PM, STEVEN THEIN <steven.thein@oracle.com> wrote:
> Hi Benson,
>   If I have the following complex type defined in my WSDL,  will the
> validator validates the sequence of the elements that is passed in, in  the
> request or passed back in the response, assuming that I have the validation
> flag on, on the client and server?
>
> <xsd:complexType name="ReadTask">
>   <xsd:sequence>
>       <xsd:element name="TaskId" type="xsd:int" maxOccurs="unbounded"/>
>       <xsd:element name="Type" type="tns:ActivityType"/>
>       <xsd:element name="BeginDate" type="xsd:dateTime" minOccurs="0"/>
>       <xsd:element name="EndDate" type="xsd:dateTime" minOccurs="0"/>
>       <xsd:element name="IncludeAll" type="xsd:boolean" minOccurs="0"/>
>      </xsd:sequence>
> </xsd:complexType>
>
> Thanks
> Steve
>
> On 11/4/2010 2:31 PM, Benson Margulies wrote:
>>
>> Schema validation is the mechanism for validating incoming or outgoing
>> XML against a W3C XML schema. The process of configuring validation
>> depends in part on the from end and data binding.
>>
>> In all cases, the result of a validation failure is that an exception is
>> thrown.
>>
>>
>>
>> http://cxf.apache.org/faq.html#FAQ-HowcanIturnonschemavalidationforjaxwsendpoint%253F
>>
>> On Thu, Nov 4, 2010 at 2:23 PM, STEVEN THEIN <steven.thein@oracle.com>
>> wrote:
>>
>>>
>>> Hi all,
>>> I would like to know what the Schema Validator in CXF validates. Is there
>>> any documentation on this?
>>> If there are  validation errors, is it log or out put to the application
>>> server console?
>>>
>>> Thanks
>>> Steve
>>>
>>>
>

Mime
View raw message