---
schema_version: "1"
id: 08ff3b792e9bc1b4d33b97ce2e33be4a157ecebc4dd82bf8f70a421654131014
title: Use Server-Side JavaScript via WSProxy with the SOAP API
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_WSProxy_useSSJS.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_WSProxy_useSSJS.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1a5cce2fcd7cbcfc0cac877426000368267950c743996f9a33636ec06af19062
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# 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.

```
var api = new Script.Util.WSProxy();
```
