You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I modified the function parseDefinition() in the file dist/src/parser.js as followed. That fixed the issue for me:
before:
/* ... */visitedDefs.push({name: definition.name,parts: defParts,definition: definition});// NOTE: cache reference to this defintion globally (for avoiding circular references)if(defParts){// NOTE: `node-soap` has sometimes problem with parsing wsdl files, it includes `defParts.undefined = undefined`if("undefined"indefParts&&defParts.undefined===undefined){/* ... */
after:
/* ... */visitedDefs.push({name: definition.name,parts: defParts,definition: definition});// NOTE: cache reference to this defintion globally (for avoiding circular references)if(defParts&&typeofdefParts==='object'){// NOTE: `node-soap` has sometimes problem with parsing wsdl files, it includes `defParts.undefined = undefined`if("undefined"indefParts&&defParts.undefined===undefined){/* ... */
When generating a client for the Domibus.wsdl, wsdl-tsclient throws the following error:
TypeError: Cannot use 'in' operator to search for 'undefined'
I reduced the wsdl to isolate the issue. You can reproduce it with the following minimal wsdl:
produces this compilation error:
I tests it using
"wsdl-tsclient": "1.3.1"
and nodev16.13.2
The text was updated successfully, but these errors were encountered: