Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

This samples demonstrates

...

For more information, see Building Axis2 Samples.

Configuring Services

To enable MEX request support for samples services, follow these steps:

  1. Login to Application Server Management Console.
  2. On the Main menu, under services, click List.
    The Deployed Services page will appear.
  3. Click on the HelloWorldService1 link.
    The service's Dashboard will appear.
  4. Click on the Module Configurations link in the Quality of Services panel of the service dashboard.
  5. Select wso2mex from the drop down list.
  6. Click Engage.
  7. An alert box would be displayed if the module is engaged successfully.

Running the Client

  1. Switch to <AS_HOME>/samples/MEX directory.
  2. Execute one of the following commands to run the client:

    OSCommand
    On Windows
    run-client.bat
    On Linux/Solaris
    sh run-client.sh
  3. Enter the URL of the target service. You will be prompted for the URL of the service, from which you wish to retrieve metadata.
    For example: 

    Panel

    Please enter the service URL: http://localhost:9763/services/HelloWorldService1

  4. Choose the type of metadata you wish to retrieve.
    For example, if you wish to retrieve XML Schema documents you need to type 1 and press enter when the following is prompted.

    Code Block
    Choose type of Metadata
        [1] XML Schema
        [1] WSDL
        [3] WS-Policy
        1
    
  5. Specify the Identifier.
    This is optional. You can skip it by just pressing Enter.
  6. The results will be printed on the Console.