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

# WS-Transfer Sample Guide

## INTRODUCTION

This samples demonstrates how to enable a WS-Transfer (xfer) support for an arbitrary service.

## HOW TO BUILD THE SAMPLE

The xfer-sample is located in the samples directory which is in the WSO2WSAS root directory.

### Prerequisites

To build the samples you need the Apache Ant build tool

### Follow these steps:

1. Start the WSO2WSAS server
2. Switch to the xfer-sample directory

    e.g. cd C:\wso2wsas-2.1\samples\xfer-sample

3. Type ant and press enter

    e.g. C:\wso2wsas-x.x\samples\xfer-sample>ant

## HOW TO CONFIGURE SERVICES

To enable WS-Transfer support for samples services, follow the following steps

1. Log in
2. Click on the Services link in the Manage section on the left hand side panel.
You will see CustomerService service has been already deployed.
3. Click on the HelloWorldService1 link
4. Clink on the Manage Module Engagement link
5. Select wso2xfer from the drop down list and click the engage button

## RUNNING THE CLIENT

1. Switch to xfer sample directory
2. Run run-client.bat (or run-client.sh if you are in Linux)
3. The results will be printed to the console.