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:
- Login to Application Server Management Console.
- On the Main menu, under services, click List.
The Deployed Services page will appear. - Click on the HelloWorldService1 link.
The service's Dashboard will appear. - Click on the Module Configurations link in the Quality of Services panel of the service dashboard.
- Select wso2mex from the drop down list.
- Click Engage.
- An alert box would be displayed if the module is engaged successfully.
Running the Client
- Switch to
<AS_HOME>/samples/MEX
directory. Execute one of the following commands to run the client:
OS Command On Windows run-client.bat
On Linux/Solaris sh run-client.sh
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
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
- Specify the Identifier.
This is optional. You can skip it by just pressing Enter. - The results will be printed on the Console.