Fork me on GitHub Fork me on GitHub

WSStub


    <%
    var ws = require('ws');
    var stub = new ws.WSStub('http://stratoslive.wso2.com/services/Version?wsdl');
    var getVersion = stub.services['Version'].operations['getVersion'];
     
    print(getVersion.request(null));
    %>

Overview

WSStub provides a web service client from a given WSDL


Members

Member Type Description
servicesArray
var versionService = stub.services['Version']; 
Provides the set of services defined in a given WSDL
operationsArray
var getVersion = stub.services['Version'].operations['getVersion'] 
A member of a given service

Operations

Operation Returns Description
request()String
var getVersion = stub.services['Version'].operations['getVersion'];
print(getVersion.request(null)); 

request() is a part of the operations for a given service.