FileDocCategorySizeDatePackage
Operation.javaAPI DocphoneME MR2 API (J2ME)4999Wed May 02 18:00:34 BST 2007javax.microedition.xml.rpc

Operation

public class Operation extends Object
The javax.microedition.xml.rpc.Operation class corresponds to a wsdl:operation defined for a target service endpoint.
version
0.1

Fields Summary
public static final String
SOAPACTION_URI_PROPERTY
Standard property for SOAPAction. Indicates the SOAPAction URI if the javax.xml.rpc.soap.http.soapaction.use property is set to true.

Type: java.lang.String

Constructors Summary
protected Operation()

Methods Summary
public java.lang.Objectinvoke(java.lang.Object inParams)
Invokes the wsdl:operation defined by this Operation and returns the result.

param
inParams an Object representing the input parameter value(s) to this operation
return
a Object representing the output value(s) for this operation. Can be null if this operation returns no value.
throws
JAXRPCException
  • if an error occurs while excuting the operation.
see
javax.microedition.xml.rpc.Operation

        return null;
    
public static javax.microedition.xml.rpc.OperationnewInstance(javax.xml.namespace.QName name, Element input, Element output)
Creates an Operation corresponding to the operation that is being performed.

param
input the Element describing the input parameter to this operation.
param
output the Element describing the return result to this operation. NULL indicates there is no return value.
return
a new Operation with the given input and output Type characteristics


                                                                                                              
        
                                         
                                         
    
        return new com.sun.j2mews.xml.rpc.OperationImpl(name, input, output);
    
public static javax.microedition.xml.rpc.OperationnewInstance(javax.xml.namespace.QName name, Element input, Element output, FaultDetailHandler faultDetailHandler)
Creates an Operation corresponding to the operation that is being performed. The faultDetailHandler parameter is passed to the runtime and used to map custom SOAP faults.

param
input the Element describing the input parameter to this operation.
param
output the Element describing the return result to this operation. NULL indicates there is no return value.
param
faultDetailHandler the FaultDetailHandler to be called to handle custom faults thrown by this Operation.
return
a new Operation with the given input and output Type characteristics

        return new com.sun.j2mews.xml.rpc.OperationImpl(name,
                                                        input,
                                                        output,
                                                        faultDetailHandler);
    
public voidsetProperty(java.lang.String name, java.lang.String value)
Sets the property name to the value, value.

param
name the name of the property to be set
param
value the value the property is to be set
throws
IllegalArgumentException
  • if an error occurs setting the property