validator

Can be used in

proxy, serviceProxy, transport, beans

Syntax

				<validator
					wsdl="url"?
					schema="url"?
				/>
			
Listing 1: validator Syntax

Samples

The following example shows how to validate requests and responses against the referenced WSDL and included Schemas.

				<serviceProxy port="8080">
					<validator
						wsdl="http://www.predic8.com:8080/material/ArticleService?wsdl" />
				</serviceProxy>			
			
Listing 23: validator Example

The following example shows how to validate XML content. The requests will be validated against the order.xsd Schema, while for responses the confirm.xsd schema will be used for validation.

				<serviceProxy port="8080">
					<request>
						<validator
							schema="http://www.predic8.com/schemas/order.xsd" />
					</request>
					<response>
						<validator
							schema="http://www.predic8.com/schemas/confirm.xsd" />
					</response>
				</serviceProxy>			
			
Listing 23: validator Example

Attributes

Name Mandatory Default Description Example
wsdl no null The WSDL to validate against. http://predic8.com:8080/material/ArticleService?wsdl
schema no null The Schema to validate against. http://www.predic8.com/schemas/order.xsd