soap

Provides methods for working with SOAP based Web Services.

Methods

authBasic(user, pass)

Sets Basic Authentication details to be used for connections with the service.

Parameters:
Name Type Description
user String Username.
pass String Password.

authBearer(token)

Sets Bearer Token Authentication details to be used for connections with the service.

Parameters:
Name Type Description
token String Token.

authNTLM(user, pass, domain, workstation)

Sets NTLM Authentication details to be used for connections with the service.

Parameters:
Name Type Description
user String Username.
pass String Password.
domain String Domain.
workstation String Workstation.

get(wsdlUrl, method, args)→ {Object}

Initiates a SOAP request and returns the response.


Example of args object for a method call which expects to receive two arguments - foo and baz.

{
  foo: "bar",
  baz: 1
}
Parameters:
Name Type Description
wsdlUrl String URL pointing to the WSDL XML.
method String Method name (case sensitive).
args Object= optionalObject containing the arguments.
Returns:
Object - The response object.

describe(wsdlUrl)→ {String}

Returns SOAP service description.

Parameters:
Name Type Description
wsdlUrl String URL pointing to the WSDL XML.
Returns:
String - JSON containing the service description.