Skip to content

does not work! #1

@zhijun

Description

@zhijun

c:\src\node\wsdl2swagger2openapi>node wsdl2swagger2openapi.js "C:\Users\xxx\Documents\xxx\xxx\xxx.xml" gtb.json
Converting WSDL to Swagger 2.0...
(node:41056) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
node:fs:2353
validateStringAfterArrayBufferView(data, 'data');
^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
at Object.writeFileSync (node:fs:2353:5)
at convert (C:\Users\zhiju\AppData\Roaming\npm\node_modules\soap-converter\index.js:73:8)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v22.12.0
An error occurred: Error: Command failed: soap-converter --input C:\Users\xxx\Documents\xxx\xxx\xxx.xml --target SwaggerJSON --output service.swagger.json
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:882:11)
at execSync (node:child_process:954:15)
at Object. (c:\src\node\wsdl2swagger2openapi\wsdl2swagger2openapi.js:16:5)
at Module._compile (node:internal/modules/cjs/loader:1565:14)
at Object..js (node:internal/modules/cjs/loader:1708:10)
at Module.load (node:internal/modules/cjs/loader:1318:32)
at Function._load (node:internal/modules/cjs/loader:1128:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 41180,
stdout: null,
stderr: null
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions