Previous Topic: Index List ClassNext Topic: Visual Basic and C# Wrapper Client Proxy Classes


Ping Web Service Class

The Ping class, OmPing, calls the Ping Web Service.

Programs that use the OmPing class must include the following import statement in the Java code:

import com.ca.omgmt.client.OmPing;

Methods

The following list describes the methods of the OmPing class:

constructor

The default constructor for the class

Parameters:None

invoke

Invokes the Ping Web Service using the parameters that are passed as input. The web service is accessed using port 8080 and the servername localhost.

Parameters:

port: String (default value: "8080")

servername: String (default value: "localhost")

protocol: String (default value:"http", other value: "https" for HTTPS protocol)

All parameters are optional and can be omitted (but port and servername together).

Code Sample

The following code sample invokes the Ping Web Service:

OmPing ping = new OmPing ();
value= ping.invoke("8080","omwsserver");