WebServiceInfo Object

Applies to TestComplete 15.10, last modified on December 15, 2021
Testing web services with TestComplete is obsolete. We recommend that you use ReadyAPI, another SmartBear's automated testing tool for SOAP and REST web services.
If needed, you can run ReadyAPI tests from TestComplete.

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
About Testing Web Services
About Testing Web Services

Highlight search results