This samples demonstrates how to enable a Metadata Exchange (MEX) request for an arbitrary service, how to use MEXClient to retrieve metadata from a service that supports MEX requests and how to write your own data retrievers to configure the metadata of your service.
The MEX sample is located in the samples directory which is in the WSO2AppServer root directory.
e.g. In MS Windows cd C:\wso2appserver-x.x.x\samples\MEX or in Linux cd wso2appserver-x.x.x/samples/MEX
e.g. C:\wso2appserver-x.x.x\samples\MEX>ant or wso2appserver-x.x.x/samples/MEX$ ant
To enable MEX request support for samples services, follow the following steps
You will see HelloWorldService1 has been already deployed.
You will be prompted for the URL of the service of which you wish get retrieve metadata
e.g. Please enter the service URL: http://localhost:9763/services/HelloWorldService1
e.g. If you wish to retrieve XML Schema documents you need to type 1 and press enter when the following is prompted. Choose type of Metadata [1] XML Schema [1] WSDL [3] WS-Policy 1
This is optional and you can skip it by just pressing enter