WebServiceInfo Object

Applies to TestComplete 14.61, last modified on April 22, 2021

Description

The WebServiceInfo object provides a scripting interface to information about a particular web service (both those that are added to the Web Services project item as well as arbitrary ones). To obtain WebServiceInfo objects from scripts, use the CreateWebServiceInfo or CreateWebServiceInfoFromItem method of the WebServices object.

Members

Example

The following example demonstrates how to obtain a web service info.

JavaScript, JScript

function WebServiceRequestDemo()
{

  var WebServiceInfo;

  // Obtains the WebServiceInfo object
  WebServiceInfo = WebServices.CreateWebServiceInfoFromItem("SampleWebService");
  
}

Python

def WebServiceRequestDemo():
  # Obtains the WebServiceInfo object 
  WebServiceInfo = WebServices.CreateWebServiceInfoFromItem("SampleWebService")
  # ...

VBScript

Sub WebServiceRequestDemo

  Dim WebServiceInfo

  ' Obtains the WebServiceInfo object
  Set WebServiceInfo = WebServices.CreateWebServiceInfoFromItem("SampleWebService")
  
End Sub

DelphiScript

procedure WebServiceRequestDemo();
var WebServiceInfo;

begin

  // Obtains the WebServiceInfo object
  WebServiceInfo := WebServices.CreateWebServiceInfoFromItem('SampleWebService');
  
end;

C++Script, C#Script

function WebServiceRequestDemo()
{

  var WebServiceInfo;

  // Obtains the WebServiceInfo object
  WebServiceInfo = WebServices["CreateWebServiceInfoFromItem"]("SampleWebService");
  
}

See Also

WebServices Object
Testing Web Services
Testing Web Services - Overview

Highlight search results