|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.xml.rpc.Operation
public class Operation
The JAX-RPC subset runtime SPI (Service Provider Interface) is used
by generated stubs to execute RPC calls. The SPI is defined by the
Type
,
Element
,
ComplexType
, and
Operation
classes.
The Operation
class is used by a Stub
instance to
describe an RPC invocation to the runtime. The following steps are carried
out in this class:
The class corresponds to a wsdl:operation defined for a target service end point (see WSDL 1.1, Chapter 3).
See Type
,
Element
,
ComplexType
.
Field Summary | ||
---|---|---|
static String |
SOAPACTION_URI_PROPERTY
The URI for the Http SOAPAction header. |
Constructor Summary | ||
---|---|---|
protected |
Operation()
|
Method Summary | ||
---|---|---|
Object |
invoke(Object input)
Invokes the RPC service end point. |
|
static Operation |
newInstance(QName qname,
Element input,
Element output)
Creates an Operation object representing an invocation of
an RPC. |
|
static Operation |
newInstance(QName qname,
Element input,
Element output,
FaultDetailHandler faultDetailHandler)
Creates an Operation object representing an invocation of
an RPC. |
|
void |
setProperty(String name,
String value)
Sets properties that are needed to invoke an RPC. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SOAPACTION_URI_PROPERTY
Constructor Detail |
---|
protected Operation()
Method Detail |
---|
public static Operation newInstance(QName qname, Element input, Element output)
Operation
object representing an invocation of
an RPC.
qname
- the qualified name of this Operation
.input
- the Element
describing the input parameter.
null
if no input is needed.output
- the Element
describing the output parameter.
null
if there is no return value.
Operation
object.public static Operation newInstance(QName qname, Element input, Element output, FaultDetailHandler faultDetailHandler)
Operation
object representing an invocation of
an RPC. An implementation of the FaultDetailHandler
interface is provided, and is used by the runtime to retrieve a
description of the SOAP fault detail.
qname
- the qualified name of this Operation
.input
- the Element
describing the input parameter.
null
if no input is needed.output
- the Element
describing the output parameter.
null
is there is no return value.faultDetailHandler
- the FaultDetailHandler
to
handle the SOAP fault detail.
Operation
object.public Object invoke(Object input) throws JAXRPCException
invoke
method passing it an Object
array storing the
input values, or null
if the operation does not
take any input parameter.
input
- an Object
array storing the input values.
Object
array storing the output values.
JAXRPCException
- if an error occurs during the execution of
this Operation
.public void setProperty(String name, String value) throws IllegalArgumentException
setProperty
method of the Operation
is
called by a generated stub to set property values for an RPC
invocation. The stub is responsible for converting the property
value into the appropriate string format.
name
- the name of the property.value
- the value the property.
IllegalArgumentException
- if the supplied property is not supported.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal