"无效日期"在node-soap响应中

时间:2016-03-22 23:25:48

标签: xml node.js web-services date soap

在使用node-soap从节点调用SOAP服务时,我发现日期格式存在问题。 soap响应中的日期元素显示为"无效日期"。有没有办法让node-soap使用特定的格式字符串进行转换?

例如:

client.addSoapHeader(wseeheader, "", "tns", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd");
client.FooService.FooServicePort.getTransactionDetail(args, function(err, result) {
  if (err) {
    console.log(err);
  }
  console.log(result.getTransactionDetailReturn.transactionDate));
});

记录的值是"无效日期"但是SOAP服务似乎正在返回" 2016-02-16-05:00"在xsd:date字段中。

提前感谢任何指导!

0 个答案:

没有答案
相关问题