Question : Turning Off XSD Validation in Axis 2

2007-10-08 Thread Ritesh Tarway
Is there a way to turn off XSD validation in production env? I would want it to be a flag in axis configuration to turn off validation globally for all deployed services? platform information : Axis2/Java Version 1.3 , deployed on tomcat or websphere, using sun's JVM ( jdk 1.5.0) -- Ritesh Tarway

Re: Question : Turning Off XSD Validation in Axis 2

2007-10-08 Thread Thilina Gunarathne
Hi, AFAIK Axis2 does not do any XSD validation unless you use data binding. XML to java object conversion that happens when you have used data binding, expects the message to conform to the schema. IIRC XMLBeans enforces this heavily, while ADB use it only when absolutely necessary. There are som

Re: Question : Turning Off XSD Validation in Axis 2

2007-10-08 Thread Ritesh Tarway
Unluckily my service has been generated using wsdl2java tool with xmlbeans bindingso xsd validation will be turned on. alright.i think there is some 3rd party custom module to turn off validation if i use jibx bindingis there any such thing for xml beans?? On 10/8/07, Thilina Guna

Re: Question : Turning Off XSD Validation in Axis 2

2007-10-09 Thread Dennis Sosnoski
XMLBeans actually does very little in the way of schema enforcement, not even checking for required elements and attributes. For anyone who *does* want to validate messages (generally a good idea at least in testing), there's a validation module I wrote for use in Axis2 training classes and made p

Re: Question : Turning Off XSD Validation in Axis 2

2007-10-09 Thread Dennis Sosnoski
Hi Ritesh, I'm surprised to see this, since as I said in my prior email XMLBeans does very little in the way of schema validation by default. You can manually validate the data, but unless the generated code includes the validation I don't know why you'd be running into problems. What kind of err

Re: Question : Turning Off XSD Validation in Axis 2

2007-10-09 Thread Ritesh Tarway
I tested it and actually found that none of bindings enforce full schema validation. So the issue is 2-fold, 1. There should be a schema validation which can be turned on during testing. 2. Schema validation can be turned off during production without any code change in web service, preferably with

Re: Question : Turning Off XSD Validation in Axis 2

2007-10-09 Thread robert lazarski
Look at the xmlbeans api for the validate() method. For example: XmlError error = validateSolicitacaoProcedimentoDocument(solicitacaoProcedimentoDocument); if (error != null) { throw new Exception("Objeto solicitacaoDemonstrativoRetornoDocument " + "is invalid:

Re: Question : Turning Off XSD Validation in Axis 2

2007-10-09 Thread Thilina Gunarathne
On 10/9/07, Dennis Sosnoski <[EMAIL PROTECTED]> wrote: > XMLBeans actually does very little in the way of schema enforcement, not > even checking for required elements and attributes. Ooops My bad... I remembered it the other way :( thanks, Thilina > > For anyone who *does* want to validate me

Re: Question : Turning Off XSD Validation in Axis 2

2007-10-09 Thread Martin Gainty
Ritesh- Which schema are you validating with? Also which schemaLocation are you pointing to ? M-- - Original Message - From: "robert lazarski" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 09, 2007 8:41 AM Subject: Re: Question : Turning Off XSD Validation in Axis 2

Re: Question : Turning Off XSD Validation in Axis 2

2007-10-09 Thread Ritesh Tarway
> Ritesh- > > Which schema are you validating with? > Also which schemaLocation are you pointing to ? > > M-- > - Original Message - > From: "robert lazarski" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, October 09, 2007 8:41 AM > Su

Re: Question : Turning Off XSD Validation in Axis 2

2007-10-09 Thread Martin Gainty
Please display wsdl Thanks/ M- - Original Message - From: Ritesh Tarway To: axis-user@ws.apache.org Sent: Tuesday, October 09, 2007 9:17 PM Subject: Re: Question : Turning Off XSD Validation in Axis 2 schema as defined in wsdl types. it contains definition for input and