(file) Return to InvokeMethod.htm CVS log (file) (dir) Up to [Pegasus] / pegasus / cgi / htdocs

  1 karl  1.1 <html>
  2 a.arora 1.5 <head>
  3             <script>
  4             	function rTrim(tempStr){
  5                                  while( tempStr.lastIndexOf(' ') == tempStr.length-1 && tempStr.length > 0 )
  6                                  { 
  7                                      tempStr = tempStr.substring(0,tempStr.length-1) 
  8                                  }
  9                                  document.InvokeMethod.InstanceName.value = tempStr;
 10             	}
 11             </script>
 12             </head>
 13 a.arora 1.4 	<body bgcolor="#cccccc">
 14             		<table width="100%">
 15             			<tr>
 16             				<td width="50%" align="bottom"><h1>Invoke an Extrinsic Method</h1>
 17             				<td>
 18             				<td width="50%" align="right">
 19             					<img border="1" src="/pegasus/icons/OpenGroupLogo.gif">
 20             				</td>
 21             			</tr>
 22             		</table>
 23             		<hr>
 24             		<form name="InvokeMethod" METHOD="get" ACTION="/pegasus/cgi-bin/CGIClient">
 25 a.arora 1.5 			<INPUT TYPE="hidden" NAME="Operation" VALUE="InvokeMethod"> <INPUT TYPE="hidden" NAME="hostaddress" VALUE="localhost:5988">
 26 a.arora 1.4 			<INPUT TYPE="hidden" NAME="debug">
 27             			<p>
 28 a.arora 1.5 			Invoke an extrinsic method on an Instance present in the Namespace.
 29 a.arora 1.4 			<p>NameSpace&nbsp;&nbsp;&nbsp; <INPUT TYPE="text" NAME="NameSpace" SIZE="30" VALUE="root/cimv2">
 30 a.arora 1.5 				String that defines the target namespace. See <A href="enumeratenamespaces.html">NameSpace 
 31             					Operations</A>
 32             			for more information
 33             			<p>InstanceName&nbsp;&nbsp;&nbsp; <INPUT TYPE="text" NAME="InstanceName" SIZE="30">&nbsp;The 
 34             				name of the Instance&nbsp;on which the method is to&nbsp;be invoked. See <A href="EnumerateInstanceNames.html">
 35             					Enumerate Instance Names</A>
 36             			for instance names for a class
 37             			<p>MethodName&nbsp;&nbsp;&nbsp; <INPUT TYPE="text" NAME="MethodName" SIZE="30"> The 
 38             				name of the method that is to be invoked. See <A href="GetClass.html">Get Class</A>
 39             			&nbsp;for&nbsp;methods&nbsp;supported&nbsp;by a class
 40             			<p>Arguments&nbsp;&nbsp;&nbsp; <INPUT TYPE="text" NAME="ArgumentList" SIZE="30">
 41             			&nbsp; Input parameters in the same sequence&nbsp;as expected by the method. 
 42             			Delimit multiple parameters with a semicolon. Eg., Sam;1234;true;Sales
 43 a.arora 1.4 			<p>
 44 a.arora 1.5 			<p><INPUT TYPE="submit" VALUE="Submit Request" name="Submit" onClick="rTrim(document.InvokeMethod.InstanceName.value);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 45 a.arora 1.4 				<INPUT TYPE="reset" VALUE="Reset Form">
 46             			<p>
 47             		</form>
 48             		<hr>
 49             		&nbsp;
 50             		<hr>
 51             		<h2>Return Request</h2>
 52             		If the Cim Server is unable to perform the extrinsic method invocation, one of 
 53             		the following status codes MUST be returned by the CimServer, where the first 
 54             		applicable error in the list (starting with the first element of the list, and 
 55             		working down) is the error returned. Any additional specific interpretation of 
 56             		the error is given in parentheses.
 57             		<UL>
 58             			<LI>
 59             			CIM_ERR_ACCESS_DENIED
 60             			<LI>
 61             			CIM_ERR_NOT_SUPPORTED (the CimServer does not support extrinsic method 
 62             			invocations)
 63             			<LI>
 64             			CIM_ERR_INVALID_NAMESPACE
 65             			<LI>
 66 a.arora 1.4 			CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or 
 67             			otherwise incorrect parameters)
 68             			<LI>
 69             			CIM_ERR_NOT_FOUND (the target CIM Class or instance does not exist in the 
 70             			specified namespace)
 71             			<LI>
 72             			CIM_ERR_METHOD_NOT_FOUND
 73             			<LI>
 74             			CIM_ERR_METHOD_NOT_AVAILABLE (the CimServer is unable to honor the invocation 
 75             			request)
 76             			<LI>
 77             				CIM_ERR_FAILED (some other unspecified error occurred)</LI>
 78             		</UL>
 79             		<hr>
 80             		<h2>Additional Description</h2>
 81             		<p>
 82             			Any CIM Server is assumed to support extrinsic methods. Extrinsic methods are 
 83             			defined by the Schema supported by the Cim Server. If a Cim Server does not 
 84             			support extrinsic method invocations, it MUST (subject to the considerations 
 85             			described in the rest of this section) return the error code 
 86             			CIM_ERR_NOT_SUPPORTED to any request to execute an extrinsic method. This 
 87 a.arora 1.4 			allows a CIM client to determine that all attempts to execute extrinsic methods 
 88             			will fail.</p>
 89             		<hr>
 90             		<h2>C++ API</h2>
 91             		<pre>
 92 karl    1.1     virtual CIMValue invokeMethod(
 93             		const String&amp; nameSpace,
 94             		const CIMReference&amp; instanceName,
 95             		const String&amp; methodName,
 96             		const Array<CIMValue>&amp; inParameters,
 97 karl    1.3 		Array<CIMValue>&amp; outParameters) = 0;    </pre>
 98 a.arora 1.4 		<hr>
 99             		<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
100             			<font size="2">Demonstration Prepared by the OpenGroup Manageability Work Group 
101             				Pegasus Development Team</font>
102             		<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
103             			<font size="2">See (<a href="http://www.opengroup.org/management">http://www.opengroup.org/management</a>) 
104             				for more information on Pegasus</font>
105             		<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
106             			<font size="1">Last Modified <!--webbot bot="Timestamp" S-Type="EDITED"
107 a.arora 1.5     S-Format="%A, %B %d, %Y %I:%M:%S %p" startspan -->
108 a.arora 1.4 				Friday, June 29, 2001 06:46:22 PM<!--webbot bot="Timestamp" i-CheckSum="54909" endspan -->
109             				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Copyright @ The Open Group 2001&nbsp;</font>
110             			<script>
111 karl    1.3    	   document.InvokeMethod.hostaddress.value = top.hostAddress;
112                    document.InvokeMethod.debug.value = top.debug
113                    document.InvokeMethod.NameSpace.value = top.NameSpace
114             
115             	   window.focus();
116 a.arora 1.4 			</script>
117             		</p>
118             	</body>
119 karl    1.1 </html>

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2