Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createClient() gets stuck #731

Open
giorgiogross opened this issue Apr 10, 2024 · 0 comments
Open

createClient() gets stuck #731

giorgiogross opened this issue Apr 10, 2024 · 0 comments

Comments

@giorgiogross
Copy link

giorgiogross commented Apr 10, 2024

Description

We're trying to initialise a SOAP client with local WSDL files. This works with most of our WSDL files, but for a few ones createClient never completes. Going into the strong-soap code revealed that execution stops while parsing the XML. One of the WSDL files it happens with can be found here: https://github.com/gematik/api-telematik/blob/OPB5/conn/phrs/PHRManagementService_V2_5_2.wsdl

Steps to reproduce

TypeError: Cannot read properties of null (reading 'postProcess')

      at node_modules/strong-soap/src/parser/xsd/simpleType.js:56:13
          at Array.forEach (<anonymous>)
      at SimpleType.postProcess (node_modules/strong-soap/src/parser/xsd/simpleType.js:55:32)
      at visitDfs (node_modules/strong-soap/src/parser/xsd/schema.js:97:10)
      at node_modules/strong-soap/src/parser/xsd/schema.js:89:7
          at Array.forEach (<anonymous>)
      at Schema.postProcess (node_modules/strong-soap/src/parser/xsd/schema.js:88:19)
      at node_modules/strong-soap/src/parser/wsdl.js:89:22
      at node_modules/strong-soap/src/parser/wsdl.js:246:9
      at WSDL._processNextInclude (node_modules/strong-soap/src/parser/wsdl.js:196:14)
      at staticLoad (node_modules/strong-soap/src/parser/wsdl.js:245:12)
      at WSDL.<anonymous> (node_modules/strong-soap/src/parser/wsdl.js:255:9)
      at Function.load (node_modules/strong-soap/src/parser/wsdl.js:433:25)
      at WSDL._processNextInclude (node_modules/strong-soap/src/parser/wsdl.js:254:12)
      at WSDL.processIncludes (node_modules/strong-soap/src/parser/wsdl.js:271:10)
      at loadUpSchemas (node_modules/strong-soap/src/parser/wsdl.js:81:12)
  • I've examined the WSDL with SoapUI and it looks fine; also other developers (Java..) don't seem to have issues with it.

Expected result

Either parse the XML successfully, or throw an exception offering useful feedback on what went wrong.

Additional information

node -e 'console.log(process.platform, process.arch, process.versions.node)'
darwin arm64 18.17.1

npm ls --prod --depth 0 | grep loopback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant