小编St.*_*mer的帖子

SOAP节点返回错误Target-Namespace"undefined"已被另一个Schema使用

我正在尝试为俄罗斯帖子写一个客户端来跟踪.它使用SOAP WSDL.我至少得到客户端对象.

 'use strict'
let soap=require('soap'),
url = 'https://tracking.russianpost.ru/rtm34?wsdl',
argums={}

soap.createClient(url,argums,function(err, client){
    console.log(client) 
})
Run Code Online (Sandbox Code Playgroud)

但它返回错误

Target-Namespace "undefined" already in use by another Schema!
Target-Namespace "undefined" already in use by another Schema!
Target-Namespace "undefined" already in use by another Schema!
Target-Namespace "undefined" already in use by another Schema!
Target-Namespace "undefined" already in use by another Schema!
/home/st.cremer/?????/get-posts/node_modules/soap/lib/wsdl.js:481
    this.element = schema.elements[nsName.name];
                         ^

TypeError: Cannot read property 'elements' of undefined
Run Code Online (Sandbox Code Playgroud)

任何人都可以解释它是什么以及应该要求的样子?

soap wsdl node.js

6
推荐指数
1
解决办法
2037
查看次数

标签 统计

node.js ×1

soap ×1

wsdl ×1