SOAP node returns error Target-Namespace “undefined” already in use by another Schema

前端 未结 4 2081
無奈伤痛
無奈伤痛 2020-12-31 22:43

I\'m trying to write a client for russian post to get track. It uses SOAP WSDL. I\'m to get at least client object.

 \'use strict\'
let soap=require(\'soap\         


        
4条回答
  •  庸人自扰
    2020-12-31 23:21

    I got the same problem but haven't solved it.

    Version: "soap": "^0.19.0"

        Target-Namespace "undefined" already in use by another Schema!
    Target-Namespace "undefined" already in use by another Schema!
    /Users/andreas/scm/todoListApi/node_modules/soap/lib/wsdl.js:481
        this.element = schema.elements[nsName.name];
                             ^
    
    TypeError: Cannot read property 'elements' of undefinedTarget-Namespace "undefined" already in use by another Schema!
    

    Update: the WSDL does not contain targetNamespace. How to work around that? Can I use the WSDL Options somehow?

提交回复
热议问题