Scandit.Soap

Methods

(static) call(url: string, method: string, namespace: string, params: object, options?: object): Promise

Performs SOAP request

Parameters:
Name Type Attributes Default Description
url string

Request url

method string

SOAP method name

namespace string

SOAP namespace

params object

SOAP call payload

options object <optional>
{}

Additional options

Properties
Name Type Attributes Default Description
headers object <optional>
{}

Additional request headers

timeout integer <optional>

Request timeout in seconds

connectionTimeout integer <optional>

Connection timeout in seconds

Returns:
Promise

Promise which is resolved to Scandit.Soap.Response

Examples
  • JavaScript
  • ES6
Scandit.Soap.call('http://example.com', 'function', 'namespace', {key: 'value'}).then(function(response) {
  console.log(response.response);
});
Scandit.Soap.call('http://example.com', 'function', 'namespace', {key: 'value'}).then(response => {
  console.log(response.response);
});

Type Definitions

Response

Properties:
Name Type Description
payload Object
response Object