nodejs 调用webservice
发布于 6个月前 作者 hf201429 792 次浏览

我使用var soap = require(‘soap’) 来调用java的webservice接口,代码如下: var url = 'http://xx.x.xx.xx:xxxx/IAMService/webservice/service?wsdl’; var args = new Array('test’,’test’,’xxx’, '’, 'xml’, ‘’); soap.createClient(url, function(err, client) { client.IfService(args, function(err, result) { console.log("err: "+err); console.log(“result: “+result); }); }); 调用出现错误: err: Error: Invalid response: 500 Body: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/” xmln s:xsd="http://www.w3.org/2001/XMLSchema” xmlns:xsi="http://www.w3.org/2001/XMLSc hema-instance"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultst ring>Not enough message parts were received for the operation.</faultstring></so ap:Fault></soap:Body></soap:Envelope> 哪位大牛指导下,看看是怎么回事。

回到顶部