|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The javax.xml.rpc.Call interface provides support for dynamic invocation of a service port. The javax.xml.rpc.Service interface acts as a factory for the creation of Call instances. Once a Call instance is created, various setter and getter methods may be used to configure this Call instance. The properties configured on a Call instance include the following:
Field Summary | |
static int |
PARAM_MODE_IN
|
static int |
PARAM_MODE_INOUT
|
static int |
PARAM_MODE_OUT
|
Method Summary | |
void |
addParameter(java.lang.String paramName,
QName xmlType,
int parameterMode)
Adds a parameter type and mode for a specific operation. |
java.lang.String |
getOperationName()
Gets the name of the operation to be invoked using this Call instance. |
QName |
getPortTypeName()
Gets the qualified name of the port type. |
java.lang.Object |
getProperty(java.lang.String name)
Gets the value of a named property. |
java.lang.String |
getTargetEndpointAddress()
Gets the endpoint address of a target service port. |
java.lang.Object |
invoke(java.lang.Object[] parameters)
Invokes a specific operation using a synchronous request-response interaction mode. |
void |
invokeOneWay(java.lang.Object[] parameters)
Invokes a remote method using the one-way interaction mode. |
void |
removeAllParameters()
Removes all specified parameters from this Call instance. |
void |
removeProperty(java.lang.String name)
Removes a named property. |
void |
setOperationName(java.lang.String operationName)
Sets the name of the operation to be invoked using this Call instance. |
void |
setPortTypeName(QName portType)
Sets the qualified name of the port type. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the value for a named property. |
void |
setReturnType(QName xmlType)
Sets the return type for a specific operation. |
void |
setTargetEndpointAddress(java.lang.String address)
Sets the endpoint address of the target service port. |
Field Detail |
public static final int PARAM_MODE_IN
public static final int PARAM_MODE_OUT
public static final int PARAM_MODE_INOUT
Method Detail |
public void addParameter(java.lang.String paramName, QName xmlType, int parameterMode)
paramName
- Name of the parameterxmlType
- XML datatype of the parameterparameterMode
- Mode of the parameter-whether
PARAM_MODE_IN, PARAM_MODE_OUT
or PARAM_MODE_INOUTjava.lang.IllegalArgumentException
- public void setReturnType(QName xmlType)
type
- XML data type of the return valuejava.lang.IllegalArgumentException
- public void removeAllParameters()
public java.lang.String getOperationName()
public void setOperationName(java.lang.String operationName)
operationName
- Name of the operation to be
invoked using the Call instancepublic QName getPortTypeName()
public void setPortTypeName(QName portType)
portType
- Qualified name of the port typepublic void setTargetEndpointAddress(java.lang.String address)
address
- Endpoint address of the target service
port; specified as URIjava.lang.IllegalArgumentException
- if address
is invalidpublic java.lang.String getTargetEndpointAddress()
public void setProperty(java.lang.String name, java.lang.Object value) throws JAXRPCException
name
- Name of the propertyvalue
- Value of the propertyjava.lang.IllegalArgumentException
- If invalid or
unsupported property is specifiedJAXRPCException
- If Call does not allow setting of
a valid standard propertypublic java.lang.Object getProperty(java.lang.String name)
name
- Name of the propertyjava.lang.IllegalArgumentException
- If invalid or
unsupported property name is specifiedpublic void removeProperty(java.lang.String name)
name
- Name of the propertyjava.lang.IllegalArgumentException
- If invalid or
unsupported property name is specifiedpublic java.lang.Object invoke(java.lang.Object[] parameters) throws java.rmi.RemoteException
Object[]
- Parameters for this invocationjava.rmi.RemoteException
- if there is any error in the
remote method invocation or if the Call object is
not configured properly.public void invokeOneWay(java.lang.Object[] parameters) throws JAXRPCException
Object[]
- Parameters for this invocationJAXRPCException
- if there is an error in the configuration
of the Call object (example: a non-void return type has been
incorrectly specified for the one-way call) or if there is any
error during the invocation of the one-way remote call
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |