1. Create the System variable containing the WSDL e.g. MyWSDL
2. Set up the appropriate condition e.g.
//WSDL URL = http://localhost:8282/my-path/?WSDL=1
var uri = source.getNode('/Request/RequestURI');
var queryString = source.getNode('/Request/QueryString');
return StringUtils.equalsIgnoreCase(uri, '/my-path/') && StringUtils.equalsIgnoreCase(queryString, 'WSDL=1');
3. Return the WSDL
qie.postMessageResponse(qie.getVariable('MyWSDL'));
This will return the contents of the MyWSDL document when the following URL is specified:
-
http://localhost:8282/my-path/?WSDL=1