Description
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
- 1. The issue provides a reproduction available on
Github,
Stackblitz
or
CodeSandbox
Make sure to fork this template and run
yarn generate
in the terminal.Please make sure Mesh package versions under
package.json
matches yours.
- 2. A failing test has been provided
- 3. A local solution has been provided
- 4. A pull request is pending review
Describe the bug
We are creating a mesh with SOAP source that needs authentication to fetch the WSDL source.
We already tried on the latest version (0.94.6), but we are getting below mentioned error:
Failed to generate the schema TypeError: wsdlObject.definitions is not iterable
at SOAPLoader.loadWSDL
When we are on version 0.14.25
this works but on latest version it fails. So this seems to be a bug in @omnigraph/soap
node_modules/@omnigraph/soap/cjs/SOAPLoader.js
This is how my mesh looks like:
sources:
- name: Source123
handler:
soap:
source: <MY_SOURCE>
operationHeaders:
Authorization: <MY_TOKEN>
schemaHeaders:
Authorization: <MY_TOKEN>
This is how my <MY_TOKEN> looks like: "Bearer 123abcslkdjfks234234"
To Reproduce Steps to reproduce the behavior:
Provide a SOAP source that needs authentication to fetch WSDL and this fails with the error described above.
Expected behavior
SOAP source that needs authentication should also work. As it works in version 0.14.25
and not latest so this should not happen.
Environment:
- OS:
@graphql-mesh/...
:- NodeJS:
Additional context