【发布时间】:2015-12-23 23:03:27
【问题描述】:
我正在使用这个库节点 js https://github.com/vpulim/node-soap 。当我尝试给客户端 args 时,如果参数是 DateAdvance: '"会出现以下错误:
Error: soap: Client: Server was unable to read request. ---> There is an error in XML document (1, 467). ---> Input string was not in a correct format
这是代码的一部分
var soap = require ('soap');
var url = 'https://elstestserver.endicia.com/LabelService/EwsLabelService.asmx?wsdl';
var args = {LabelRequest: {DateAdvance: ""}};
soap.createClient (url, function (err, client) {
client.MyFunction (args, function (err, result) {
console.log (result);
});
});
只有DateAdvance这个词。
谢谢。
【问题讨论】: