Sets Basic Authentication details to be used for connections with the service.
Parameters:
Name | Type | Description |
|
| Username. |
|
| Password. |
Sets Bearer Token Authentication details to be used for connections with the service.
Parameters:
Name | Type | Description |
|
| Token. |
Sets NTLM Authentication details to be used for connections with the service.
Parameters:
Name | Type | Description |
|
| Username. |
|
| Password. |
|
| Domain. |
|
| Workstation. |
Returns SOAP service description.
Parameters:
Name | Type | Description |
|
| URL pointing to the WSDL XML. |
Returns:
Object
- Service description.
Initiates a SOAP request and returns the response.
Usage example:
// get SOAP service description, so we can understand what methods it provides,// what input parameters it expects, and what is the output structure.var serviceUrl = 'http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL';var serviceDescription = soap.describe(serviceUrl);log.info(serviceDescription);​// NumberToWords method in this service converts number to words.var result = soap.get(serviceUrl, 'NumberToWords', { 'ubiNum': 2019 });log.info(result.NumberToWordsResult);
Parameters:
Name | Type | Description |
|
| URL pointing to the WSDL XML. |
|
| Method name (case sensitive). |
|
|
|
Returns:
Object
- The response object.