Use Server-Side JavaScript via WSProxy with the SOAP API
The legacy methods for accessing SOAP object data, including what is used in the SSJS Core Library, are primarily wrappers around AMPScript functions. Using legacy SSJS methods adds overhead to the processing of the calls as the code translates the data between the different language runtimes. The WSProxy object is native to the platform and simpler to use than the SSJS methods. The object reduces overhead and increases speed of your API calls. The object’s usage syntax is much more JavaScript-like when compared to the existing platform functions.
The WSProxy object is available in all non-send contexts and has the same restrictions in place as other SOAP API access methods.
To start using the WSProxy object, create an object to handle the proxying of calls.