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

feature to have the option to change the key of the wsdl #1189

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Lucas-Mondini
Copy link

I was having a problem with a company, that the wsdl was returning the wrong data to the soapclient; but despite i knew the expected data, I can't change by the code.
So I made a small change that allow me to change the XML key before send to the server
I just have to pass an object with the key value that I want to change, and the value that I want that this key have

        const options = { 
            overrideElementKey: {
                oldKeyOnTheXML: "NewKeyOnTheXML"
            }
        }

@@ -188,6 +188,10 @@ export class Client extends EventEmitter {
}
}
}

if(options.overrideElementKey !== undefined) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

please document this in the README

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