Simple Salesforce SOAP request client

Hierarchy

  • SoapClient

Constructors

Properties

clientName: string = SoapClient.defaultClientName

API client name used in the SOAP request to identify the client making the request. Defaults to defaultClientName

endpoint: string
retryDelay: number = 3000

Retry delay in MS after which a retryable SOAP fault is retried.

retryLimit: number = 3

Number of retries to attempt after which a request is failed.

transport: HttpTransport
xmlNs: string = 'http://soap.sforce.com/2006/08/apex'
defaultClientName: string = 'Vlocode SOAP client'

Default API client name used for new SOAP clients.

Methods

  • Converts the contents of the package to XML that can be saved into a package.xml file

    Parameters

    • request: SoapClientRequest

    Returns string

  • Type Parameters

    • T = object

    Parameters

    • request: SoapClientRequest
    • Optional attempt: number

    Returns Promise<SoapClientResponse<T>>

  • Make SOAP request.

    Type Parameters

    • T = object

    Parameters

    • method: string

      method name

    • request: object

      request body as JSON object

    • Optional options: SoapRequestOptions

    Returns Promise<SoapClientResponse<T>>