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

feat(Server): method called with apply #1115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat(Server): method called with apply #1115

wants to merge 1 commit into from

Conversation

bruno-brant
Copy link

When using node-soap to create a soap server, one could prefer to declare and instantiate a class and pass that as the service object (although the current documentation does instruct developers to use anonymous objects). This would allow us to create more complex service implementations by using methods, properties, etc.

However, right now, doing so results in little gain since methods are being called directly, without correctly setting the "this" variable.

The correction is very simple, though: the owning object for method is port; it's just a question of instead of invoking it directly, just call apply and pass the port as it's this variable.

@coveralls
Copy link

coveralls commented Jun 21, 2020

Coverage Status

Coverage increased (+0.002%) to 94.857% when pulling 15542fd on bruno-brant:feature/add-support-for-this into 699b984 on vpulim:master.

…being called directly, which enables access to "this".The owning object for the method is the port, therefore, that's what is being passed as "this".
@@ -1,6 +1,6 @@
{
"name": "soap",
"version": "0.29.0",
"version": "0.31.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert this. maintainers will bump

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