Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.

Copyright © 2007 Sun Microsystems, Inc. All rights reserved.

JSR 172

javax.microedition.xml.rpc
Class Operation

java.lang.Object
  extended by javax.microedition.xml.rpc.Operation

public class Operation
extends java.lang.Object

The javax.microedition.xml.rpc.Operation class corresponds to a wsdl:operation defined for a target service endpoint.

Version:
0.1

Field Summary
static java.lang.String SOAPACTION_URI_PROPERTY
          Standard property for SOAPAction.
 
Constructor Summary
protected Operation()
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object inParams)
          Invokes the wsdl:operation defined by this Operation and returns the result.
static Operation newInstance(QName name, Element input, Element output)
          Creates an Operation corresponding to the operation that is being performed.
static Operation newInstance(QName name, Element input, Element output, FaultDetailHandler faultDetailHandler)
          Creates an Operation corresponding to the operation that is being performed.
 void setProperty(java.lang.String name, java.lang.String value)
          Sets the property name to the value, value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOAPACTION_URI_PROPERTY

public static final java.lang.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

See Also:
Constant Field Values
Constructor Detail

Operation

protected Operation()
Method Detail

newInstance

public static Operation newInstance(QName name,
                                    Element input,
                                    Element output)
Creates an Operation corresponding to the operation that is being performed.

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

newInstance

public static Operation newInstance(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.

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

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
                 throws java.lang.IllegalArgumentException
Sets the property name to the value, value.

Parameters:
name - the name of the property to be set
value - the value the property is to be set
Throws:
java.lang.IllegalArgumentException -
  • if an error occurs setting the property

invoke

public java.lang.Object invoke(java.lang.Object inParams)
                        throws JAXRPCException
Invokes the wsdl:operation defined by this Operation and returns the result.

Parameters:
inParams - an Object representing the input parameter value(s) to this operation
Returns:
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 Also:
Operation

JSR 172

Copyright © 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 172 specification.