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:
The default constructor for the class
Parameters:None
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");
|
Copyright © 2013 CA.
All rights reserved.
|
|