WebServices.CreateWebServiceInfoFromItem Method

Applies to TestComplete 12.60, last modified on September 17, 2018

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
WebServices.CreateWebServiceInfo Method

Highlight search results