Closed zarend closed 7 years ago
Check out issue #41 where they used the node soap $xml key (https://github.com/vpulim/node-soap#overriding-the-xml-key) to override the xml generator and manually populate the content. Would mean a little work on your end to build the function or loop but could be faster.
I don't want to have to write out the xml for every request because that would defeat the purpose of using this library.
The problem is that converting the object into soap xml takes too long, and this is not the only operation that is slow.
https://github.com/vpulim/node-soap/pull/855/files#diff-0e69590ba3779ce36d55f98da7266b97R1977
@nmarus how does your fix in that work? My new plan is to resurrect that PR, but add a test for it, and write in a way that it is not as exchange specific (such as pass a parameter for finding the child schema a different way)
Check out #17
The options at this point are to rewrite this lib to use another soap processor which I have been looking into, or as you mention, try a node-soap PR that is not MS wsdl specific as our workaround in #17 did.
Try node-ews 3.0.6 from npm, or try editing the package.json file of recent release to use the forked version of noad-soap with the workaround from vpulim/node-soap/pull/855.
"soap": "https://github.com/cumberlandgroup/node-soap/tarball/master"
Curious if that increases your performance.
Good suggestion – node-ews@3.0.6 works fine for me. I will also attempt making a fix in node-soap.
Thanks for the feedback. Not sure to classify this as a "bug" or not. We can revert to the forked version of node-soap in the meantime. Further feedback welcome.
I'm stuck on trying to fix node-soap, discussion is in the node-soap gitter/
https://gitter.im/vpulim/node-soap
I'm gonna try using strongloop https://strongloop.com/strongblog/soap-into-rest-apis-with-loopback-node-js/
Didn't get anywhere with loopback, but I found a fix in node-soap. Need to figure out how to write a unit/integration test for it, because node-soap doesn't except pr's that don't have tests.
https://github.com/vpulim/node-soap/pull/968
^ PR to fix node-soap
In my application it takes a long time to make calls to node-ews because parsing the javascript object into soap xml is slow. The worst offender is UpdateItem which spends 5-17 seconds converting the object to xml. Any thoughts on how to combat this. I know this is an issue with node-soap. Any thought to using a faster library?
I can't make our customers wait 17 seconds to update the descriptions their calendar calendar items, and I would really appreciate help with this.
see also https://github.com/CumberlandGroup/node-ews/issues/17
Here is an example request: