code: function setOperations(operations, portType) {
    _.forEach(portType.childNodes, node => {
      if (node.localName === 'operation') {
        operations[node.getAttribute('name')] = node;
      }
    });
  }
docs: set operations via interface or portType