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

* prefer SOAPAction header over the body name to get the actual method name #1152

Merged
merged 1 commit into from Jul 26, 2021
Merged

Conversation

paulish
Copy link
Contributor

@paulish paulish commented Jul 26, 2021

I had many cases when I had to modify my wsdl to let node-soap to find and trigger the right method. But in some cases I have no options to modify wsdl file. The problem is that node-soap looks for method name using body name. This works in majority of cases but not in all.

At the same time most of software send the SOAPAction header (and node-soap client as well). This header better defines the method to call. My change switches node-soap to first search the method by SOAPAction header and if it is not available then search by the body name.

@jsdevel jsdevel merged commit a7eb0fb into vpulim:master Jul 26, 2021
lah8789 pushed a commit to lah8789/node-soap that referenced this pull request Jul 27, 2021
@MrOldProger
Copy link

MrOldProger commented Oct 20, 2021

There is a bug in this PR. Line 289. If SOAPAction header is not set, this causes 500 Server internal error, because soapAction variable is undefined.

@jsdevel
Copy link
Collaborator

jsdevel commented Nov 3, 2021

please submit a PR

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