Skip to content

Conversation

Lucas-Mondini
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

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

@w666 -- is it only the README change that is required that's holding up this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also needs a test. I added this one to my todo list.

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

Successfully merging this pull request may close these issues.

4 participants