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 WSO2AppServer root directory.

Prerequisites

To build the samples you need the Apache Ant build tool

Follow these steps:

  1. Start the WSO2AppServer server
  2. Switch to the xfer directory
  3. e.g. In MS Windows cd C:\wso2appserver-x.x.x\samples\Xfer or in 
    	Linux cd wso2appserver-x.x.x/samples/Xfer
  4. Type ant and press enter
  5. e.g. C:\wso2appserver-x.x\samples\Xfer>ant or wso2appserver-x.x.x/samples/Xfer$ ant

HOW TO CONFIGURE SERVICES

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

  1. Log in to AppServer Console
  2. Click on the List link in the Manage\services section on the left hand side panel.
  3. You will see CustomerService service has been already deployed.
  4. Click on the CustomerService link in deployed services table(in Service Groups)
  5. Click on the Module link in service management page.
  6. Select wso2xfer from the drop down list and click the engage button

RUNNING THE CLIENT

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