Documentation

##### WSO2 WSAS 2.2-RC1

- Release Notes
- Contents
- Home

##### Downloads

- Releases

##### Documentation

- User Guide
- FAQs
- Installation Guide
- Source
- Running Behind a Proxy
- Data Services Guide
  - RDBMS Data Source
  - CSV Data Source
  - Excel Data Source
  - JNDI Data Source
- EJB Guide
- Clustering Guide
- JMX Guide
- XKMS Guide
- Changing Keys

##### Samples

- Chad
- Commodity Quote
- Data Services
- Flickr
- Javascript
- Jaxws
- JiBX
- Mtom
- STS
- Trader
- Tiny URL
- Metadata Exchange
- WS-Transfer
- XML Key Managment Specification
- Cluster Management

##### 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
- Integration

##### Project Information

- Project Team
- Issue Tracking
- License

[Download] | [Documentation Home] | [Release Note]

# JibX Sample

## Introduction

This sample demonstrate a usage of Jibx data binding that comes with Axis2. JiBX differs from the other data binding techniques supported by Axis2 in that it allows you to use your own Java data objects (as opposed to Java data objects generated from a schema definition). JiBX also provides a nicer form of unwrapped Web services interface than is supported by the other data binding techniques. On the downside, JiBX requires more setup than the other data binding techniques - in particular, you need to come up with a set of data classes and a binding definition in order to work with JiBX in Axis2.

## Building the Service

To build the sample service, go to samples directory and type: "ant" This will build LibraryService.aar in the target directory and copy it to the <WSAS_HOME>/repository/services directory. The WSDL for this service should be viewable at: http://<host>:<port>/services/LibraryService?wsdl

## Running the Client

To run the sample client for the service, go to samples directory and user either run-client.sh in Linux or run-client.bat in Windows. Or else you can use WSAS features to generate the client stubs pointing to the wsdl and invoke the service with that Or invoke the service with Try-It

## References

1. http://ws.apache.org/axis2/1_3/jibx/jibx-codegen-integration.html
2. http://ws.apache.org/axis2/1_3/jibx/jibx-doclit-example.html
3. http://ws.apache.org/axis2/1_3/jibx/jibx-unwrapped-example.html
4. http://jibx.sourceforge.net/bindcomp.html