Node.js Soap:rpc样式绑定的消息定义无效

Node.js Soap:rpc样式绑定的消息定义无效,node.js,soap,wsdl,Node.js,Soap,Wsdl,我正在尝试从节点使用wsdl。使用“vpulim/node-soap” 我可以加载wsdl,描述它,甚至调用某些函数。但是,每当我尝试调用不需要任何参数的函数时,都会出现错误: assert.js:92 throw new assert.AssertionError({ ^ AssertionError: invalid message definition for rpc style binding at Client._invoke (/home/user/nod

我正在尝试从节点使用wsdl。使用“vpulim/node-soap”

我可以加载wsdl,描述它,甚至调用某些函数。但是,每当我尝试调用不需要任何参数的函数时,都会出现错误:

assert.js:92
  throw new assert.AssertionError({
        ^
AssertionError: invalid message definition for rpc style binding
    at Client._invoke (/home/user/node_scripts/application/node_modules/soap/lib/client.js:126:12)
    at null.getManagedModules (/home/user/node_scripts/application/node_modules/soap/lib/client.js:87:10)
    at /home/user/node_scripts/application/client.js:9:12
    at /home/user/node_scripts/application/node_modules/soap/lib/soap.js:48:5
    at null.callback (/home/user/node_scripts/application/node_modules/soap/lib/soap.js:35:7)
    at /home/user/node_scripts/application/node_modules/soap/lib/wsdl.js:716:12
    at WSDL._processNextInclude (/home/user/node_scripts/application/node_modules/soap/lib/wsdl.js:732:12)
    at WSDL.processIncludes (/home/user/node_scripts/application/node_modules/soap/lib/wsdl.js:762:8)
    at /home/user/node_scripts/application/node_modules/soap/lib/wsdl.js:678:10
    at process._tickCallback (node.js:415:13)
下面是描述()

如果我运行下面的代码,它可以正常工作。我还将包括来自SoapUI的soap请求:

var args = {manModuleName: 'MQ'}
soap.createClient(url, function(err, client) {
    console.log(client.describe());
    client.getManagementModule(args, function(err, result) {
        console.log(result);
    });
});

### SOAPUI REQUEST ###
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aler="http://alerts.hidden.server.hidden.com">
   <soapenv:Header/>
   <soapenv:Body>
      <aler:getManagementModule soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <manModuleName xsi:type="xsd:string">MQ</manModuleName>
      </aler:getManagementModule>
   </soapenv:Body>
</soapenv:Envelope>
var args={manModuleName:'MQ'}
createClient(url,函数(err,客户端){
console.log(client.descripe());
client.getManagementModule(参数、函数(错误、结果){
控制台日志(结果);
});
});
###SOAPUI请求###
MQ
所以这个函数可以正常工作,因为我可以传递一个arg。但是,以下代码因上述错误而失败。您可以从soapui请求中看到,不需要参数。它只是一个返回列表的函数调用。我尝试过设置空白参数、空参数等。。。不能让它工作

soap.createClient(url, function(err, client) {
    console.log(client.describe());
    client.getManagedModules(function(err, result) {
        console.log(result);
    });
});

### SOAPUI REQUEST ###
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aler="http://alerts.hidden.server.hidden.com">
   <soapenv:Header/>
   <soapenv:Body>
      <aler:getManagedModules soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
   </soapenv:Body>
</soapenv:Envelope>
soap.createClient(url,函数(err,客户端){
console.log(client.descripe());
client.getManagedModule(函数(err,result){
控制台日志(结果);
});
});
###SOAPUI请求###

有什么办法可以让它工作吗?

我为此痛苦了一段时间-我成功地将
args
定义为“null”:

soap.createClient(url, function(err, client) {
    console.log(client.describe());
    client.getManagedModules(null, function(err, result) {
        console.log(result);
    });
});

有什么解决办法吗?我需要传递参数,方法也需要传递参数。所以,不能传递null。
soap.createClient(url, function(err, client) {
    console.log(client.describe());
    client.getManagedModules(null, function(err, result) {
        console.log(result);
    });
});