anyone have an elegant solution to invoking SOAP w...
# suitescript
s
anyone have an elegant solution to invoking SOAP web services from SuiteScript? I'm hoping to avoid 1. brute force string blobs to create xml or 2. the very verbose
N/xml
module. Anyone done anything better/faster/stronger than those two? I've used JSONIX in the past but don't have it working in SS2.x. Anyone using any other JS/TS<->XML libs successfully in SS2.0/1?
b
you can use your favorite template library to generate your xml string
otherwise i too want to hear better xml tools
a
I recently did something related to that, but I know you will not like it... my style/approach is 100% native, I did both versions one using N/xml and another with pure JS and string replacement approach.
Working well for what was needed but far away from being a framework or library and certainly no TS...
s
Thanks guys. If I have to fall back on string templates at least that's something built into TS/SS2.1 so it's a little bit better than the old school string concat or a lib doing similar. JSONIX was quite impressive as it was far more generic a solution.... but I've spent some time trying to coerce it to work in SS 2.0/1 with no luck yet.
OK, after some hacking I have cobbled together a JSONIX that at least seems to work in SS2.1