apache > ws.apache
WSRF
 

Schema Validation

Introduction

By default, all requests sent to the resource invocation framework are validated against any defined schemas types which have corresponding XMLBean classes located on the classpath. When validation fails, a fault that contains a detailed description of exactly what is wrong with the XML is returned to the client. Request validation is performed using XMLBeans, which utilizes an in-memory binary schema store. If the utmost performance is required, request validation can be disabled.

Disabling Schema Validation

Schema validation is enabled by default. This means that all requests are validated. If you would like to disable this feature, you must set the validateRequestXml Java system property to false. The system property can be set by specifying a command-line option upon launching the JVM that is hosting Apache WSRF. For example:

	-DvalidateRequestXml=false

If you are using Tomcat, you can set this property in the JAVA_OPTS variable before starting Tomcat. For example:

	set JAVA_OPTS=-DvalidateRequestXml=false
	catalina.bat run