Documentation

##### WSO2 WSAS 2.1-RC6

- Contents
- Home

##### Downloads

- Releases

##### Documentation

- User Guide
- FAQs
- Installation Guide
- Source
- Running Behind a Proxy
- Data Services Guide
- EJB Guide
- Clustering Guide
- XKMS Guide
- Changing Keys

##### Samples

- Chad
- Commodity Quote
- Data Services
- Flickr
- Javascript
- STS
- Trader
- Tiny URL

##### API Documentation

- Java Docs

##### Tools

- Code Generation
- Change Password
- Eclipse IDE Integration
- TCP Monitor
- WSDL2Code
- WSDL View
- Try It
- AAR Validation
- MAR Validation

##### Resources

- News

##### Get Involved

- Mailing Lists
- Release Process
- Integration

##### Project Information

- Project Team
- Issue Tracking
- License

[ Download ] | [ Documentation Home ] | [ Release Notes ]

# AAR Validator

The aim of this document is to explain briefly how the Service Validator (AAR Validator) tool work.

## Content

- Introduction
- Usage
- Conclusion

## Introduction

MAR Validator is a graphical tool available with WSO2 Web Services Application Server that allows the user to validate a Web Service, (also known as a AAR file, due to the .aar extension).

## Usage

Validating a service before is deployed can come in handy, because it will provide an assurance of the validity of the service in question. Using AAR Validator is quite easy, and as with the other tools provided on the WSO2 Web Services Application Server front page, you don't even need to sign in. Click on AAR Validator and you will be taken to the following screen.

There are two different ways in which we can provide the tool with the service which needs to be validated. We can either provide a service archive (a .aar file) or a service descriptor (a services.xml file).

First lets consider the scenario of validating an AAR (A web service archive)

click on the Browse on the "Select an AAR" box to search your file system for the .aar file which represents the service archive you want to validate. Once you have selected it, click on the Validate AAR button to validate the services.xml inside it.

Note: In case of a AAR Validation what actually happens is that the services.xml file inside the archive is extracted and validated.

Next, lets consider the other option, namely, directly pointing to a services.xml file to validate.

Click on the Browse button in the "Select a services.xml" box to search your file system for the services.xml file which you want to validate. Once you have selected it, click on "Validate services.xml" button to validate the service descriptor.

In both of the above methods, when the validation process has completed, you will be taken to the results page. This page will display the validation results in tabular form.

If we take a closer look at the inner workings of the validation process, in services.xml validation, the tool parses the input services.xml against a schema and looks for any invalidities. If any are found, they are presented in a tabular form.

## Conclusion

AAR validator provides a handy method of validating an AAR archive or a services.xml file and viewing the results in a tabular form.