On Sat, Jun 12, 2010 at 9:32 PM, Jack Sprat <[email protected]> wrote:

> What do you mean when you say validates the inbound request?  I can see the
> "unexpected subelement" message when a request is received that does not
> conform to the schema.  I would not call that valdiation.  I want to be able
> to return the actual error messages from the parser, similar to the
> #validate() method in XMLBeans.
> Is this possible?
>

No. ADB data model is generated from the schema so validate against it
equals to validates against schema. However this is not 100% accurate.

thanks,
Amila.

>
> The only alternative I can see is to pull out the body and send that
> through a parser, which is not ideal.
>
> Thanks,
> J
>
> --- On *Sat, 6/12/10, Amila Suriarachchi <[email protected]>*wrote:
>
>
> From: Amila Suriarachchi <[email protected]>
> Subject: Re: [Axis2] Schema validation with ADB
> To: [email protected]
> Cc: [email protected]
> Date: Saturday, June 12, 2010, 1:38 AM
>
>
>
>
> On Thu, Jun 10, 2010 at 1:40 AM, Jack Sprat 
> <[email protected]<http://us.mc373.mail.yahoo.com/mc/[email protected]>
> > wrote:
>
>>   Is there a simple way to perform schema validation when using ADB?
>> Examples would be quite helpful.
>> I know this is simple with XMLBeans but have a service using ADB where I
>> need to validate the inbound request.
>>
>
> ADB validates the incoming request while parsing the request.
>
> thanks,
> Amila.
>
>>
>> Thanks.
>> J
>>
>>
>>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Reply via email to