WebServices.CreateWebServiceInfoFromItem Method

Applies to TestComplete 15.63, last modified on April 23, 2024
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 CreateWebServiceInfoFromItem method returns a WebServiceInfo object holding information about the specified Web Services project element.

To get a WebServiceInfo object for an arbitrary web service without adding it to the Web Services project item, use the CreateWebServiceInfo method.

Declaration

WebServices.CreateWebServiceInfoFromItem(WebServiceName)

WebServiceName [in]    Required    String    
Result A WebServiceInfo object

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

WebServiceName

Specifies the Web Services project element name that is displayed in the Project Explorer panel, for example, “WebService1”.

Result Value

A WebServiceInfo object that holds information about the specified Web Services project element.

Example

The following code obtains the object holding information about the SampleWebService item added to the WebServices collection.

JavaScript, JScript

function WebServiceInfo()
{

  var WebServiceInfo;

  // Obtains the object containing information about the SampleWebService project element
  WebServiceInfo = WebServices.CreateWebServiceInfoFromItem("SampleWebService");

}

Python

def WebServiceInfo():
  # Obtains the object containing information about the SampleWebService project element
  WebServiceInfo = WebServices.CreateWebServiceInfoFromItem("SampleWebService")

VBScript

Sub WebServiceInfo
  Dim WebServiceInfo

  ' Obtains the object containing information about the SampleWebService project element
  Set WebServiceInfo = WebServices.CreateWebServiceInfoFromItem("SampleWebService")

End Sub

DelphiScript

procedure WebServiceInfo();
var WebServiceInfo;

begin

  // Obtains the object containing information about the SampleWebService project element
  WebServiceInfo := WebServices.CreateWebServiceInfoFromItem('SampleWebService');

end;

C++Script, C#Script

function WebServiceInfo()
{

  var WebServiceInfo;

  // Obtains the object containing information about the SampleWebService project element
  WebServiceInfo = WebServices["CreateWebServiceInfoFromItem"]("SampleWebService");

}

See Also

WebServiceInfo Object
CreateWebServiceInfo Method

Highlight search results