strong-soap
Version:
A minimal node SOAP client
36 lines (34 loc) • 1.12 kB
JavaScript
// Copyright IBM Corp. 2016,2017. All Rights Reserved.
// Node module: strong-soap
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
;
var WSDLElement = require('./wsdlElement');
class PortType extends WSDLElement {
constructor(nsName, attrs, options) {
super(nsName, attrs, options);
}
postProcess(definitions) {
if (this.operations) return;
this.operations = {};
var children = this.children;
if (typeof children === 'undefined') return;
for (var i = 0, child; child = children[i]; i++) {
if (child.name !== 'operation') continue;
child.postProcess(definitions);
this.operations[child.$name] = child;
}
}
describe(definitions) {
var operations = {};
for (var name in this.operations) {
var method = this.operations[name];
operations[name] = method.describe(definitions);
}
return operations;
}
}
PortType.elementName = 'portType';
PortType.allowedChildren = ['operation', 'documentation'];
module.exports = PortType;
//# sourceMappingURL=portType.js.map