node-soap icon indicating copy to clipboard operation
node-soap copied to clipboard

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

Open Lucas-Mondini opened this issue 2 years ago • 0 comments

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"
            }
        }

Lucas-Mondini avatar Jun 22 '22 20:06 Lucas-Mondini