1. Create the System variable containing the WSDL e.g. MyWSDL
2. Set up the appropriate Condition Node to route the request for the WSDL to a mapping node to handle returning it. e.g.
//Example 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 in a Mapping Node
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
See also:
Handling HTTP requests and responses
Posting Responses via qie.postMessageResponse() in a channel that uses an HTTP Listener source node