wsSetRequestMethod (wsCONNECT)
Compatible with:
- Purpose
- This command is used to set the request method. Request methods supported are GET, POST, PUT and DELETE for REST Services.
- In case of SOAP we need to pass the "Operation Name" present in the Web Services Description Language(wsdl).
- Syntax
- wsSetRequestMethod(requestType)
- Target
- Request Method in case of REST service Or Operation Name in case of SOAP service
- The target could also be variable used within the Test Script or a User Defined Variable or a System Variable
- Value
- N/A
- Return Value
- N/A
Example(s):
Click here to see the example