public class Operation
extends java.lang.Object
javax.microedition.xml.rpc.Operation
class corresponds to a wsdl:operation defined for a
target service endpoint.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SOAPACTION_URI_PROPERTY
Standard property for SOAPAction.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Operation() |
| Modifier and Type | Method and Description |
|---|---|
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. |
public static final java.lang.String SOAPACTION_URI_PROPERTY
javax.xml.rpc.soap.http.soapaction.use
property is set to true.
Type: java.lang.String
public static Operation newInstance(QName name, Element input, Element output)
Operation corresponding to the
operation that is being performed.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.Operation with the given input
and output Type characteristicspublic static Operation newInstance(QName name, Element input, Element output, FaultDetailHandler faultDetailHandler)
Operation corresponding to the
operation that is being performed. The faultDetailHandler
parameter is passed to the runtime and used to map custom SOAP faults.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.Operation with the given input
and output Type characteristicspublic void setProperty(java.lang.String name,
java.lang.String value)
throws java.lang.IllegalArgumentException
name to the value,
value.name - the name of the property to be setvalue - the value the property is to be setjava.lang.IllegalArgumentException - public java.lang.Object invoke(java.lang.Object inParams)
throws JAXRPCException
Operation and returns the result.inParams - an Object representing the input
parameter value(s) to this operationObject representing the output
value(s) for this operation. Can be null
if this operation returns no value.JAXRPCException - OperationCopyright © 2013, Oracle and/or its affiliates. All rights reserved.
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.