OXYGEN
HomeGitHubReleasesCommunity
  • Welcome to Oxygen
  • About
    • What is Oxygen?
    • Getting Started (Videos)
      • Oxygen IDE Controls Overview
      • Recording a Web Test
      • Oxygen Commands Explained
    • Getting help
  • Download and work with Oxygen
    • Download & Installation
      • Oxygen IDE Installation
      • Oxygen for Mobile Installation
      • Oxygen for Windows Desktop Automation Setup
      • Oxygen for Mac Installation
        • Mac Installation Troubleshooting
      • Oxygen CLI Installation
      • Java Installation Instructions
      • Recording Troubleshooting
    • Start working with Oxygen
      • Getting Started - Web
        • Introduction - Web Testing
        • Recording a Web Test
        • Creating a Web Test
        • Sample Project - Web Test
      • Getting Started - Mobile
        • Introduction - Mobile Testing
        • Recording a Test on Mobile
        • Creating a Test - Mobile
        • Sample Project - Mobile
      • Getting Started - Oxygen for Windows Desktop Automation
      • Getting Started- Oxyge CLI
        • Running a Test Script on Windows
        • Running Multiple Tests (Suites) on Windows
    • Oxygen Modules
      • assert
      • date
      • db
      • email
      • eyes
      • http
      • log
      • mailinator
      • mob
      • pdf
      • proxy
      • serial
      • shell
      • soap
      • twilio
      • utils
      • web
      • win
    • Test Parameters
  • Cloud Providers
    • Sauce Labs
    • Lambda Test
    • TestObject
  • Advanced programming in Oxygen
    • Project Configuration
    • Locating Elements
    • Page Objects
    • Environments
    • Code Components
Powered by GitBook
On this page
  • authBasic
  • authBearer
  • authNTLM
  • describe
  • get
  • getLastResponseHeaders
  • setProxy

Was this helpful?

  1. Download and work with Oxygen
  2. Oxygen Modules

soap

Provides methods for working with SOAP based Web Services.

authBasic

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

Parameters:

Name
Type
Description

user

String

Username.

pass

String

Password.

authBearer

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

Parameters:

Name
Type
Description

token

String

Token.

authNTLM

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.

describe

Returns SOAP service description.

Parameters:

Name
Type
Description

wsdlUrl

String

URL pointing to the WSDL XML.

wsdlHeaders

Object

optional custom HTTP headers to be sent on WSDL requests.

Returns:

Object - Service description.

get

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

wsdlUrl

String

URL pointing to the WSDL XML.

method

String

Method name (case sensitive).

args

Object

optional Object containing the arguments.

wsdlHeaders

Object

optional custom HTTP headers to be sent on WSDL requests.

Returns:

Object - The response object.

getLastResponseHeaders

Returns last response headers.

Returns:

Object - IncomingHttpHeaders (https://microsoft.github.io/PowerBI-JavaScript/interfaces/node_modules__types_node_http2_d.http2.incominghttpheaders.html).

setProxy

Sets proxy url to be used for connections with the service.

Parameters:

Name
Type
Description

url

String

Proxy url. Invocation without arguments will remove any previously set url.

PreviousshellNexttwilio

Last updated 3 years ago

Was this helpful?