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

BUG: Attributes in the body tag are incorrectly handled #815

Open
natanbcpc opened this issue Jul 23, 2024 · 0 comments
Open

BUG: Attributes in the body tag are incorrectly handled #815

natanbcpc opened this issue Jul 23, 2024 · 0 comments

Comments

@natanbcpc
Copy link

Description/Steps to reproduce

When adding attributes to the body tag (e.g. <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">), the library currently returns the following error:

TypeError: Cannot read properties of undefined (reading 'output')
at Server._executeMethod (/usr/src/app/node_modules/strong-soap/src/server.js:337:44)
at Server._process (/usr/src/app/node_modules/strong-soap/src/server.js:207:14)
at IncomingMessage. (/usr/src/app/node_modules/strong-soap/src/server.js:112:18)
at IncomingMessage.emit (node:events:513:28)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Currently, this was only supported using the document style and when the attributes key was set to the default "attributes". If the rpc style is used or a different attributesKey is set up, this is not supported.

Expected result

Adding attributes to the body tag of the request should not result in an error and rather return the same as a call without any attributes in the body tag.

Additional information

linux x64 20.12.2
npm WARN config production Use --omit=dev instead.

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