|
||||||||||
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
Field PARAM_MODE_IN |
static int |
PARAM_MODE_INOUT
Field PARAM_MODE_INOUT |
static int |
PARAM_MODE_OUT
Field PARAM_MODE_OUT |
Method Summary | |
void |
addParameter(java.lang.String paramName,
XMLType paramType,
int parameterMode)
Adds a parameter type and mode for a specific operation. |
java.lang.String |
getEncodingStyle()
Method getEncodingStyle |
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.net.URL |
getTargetEndpointAddress()
Gets the endpoint address of a target service port. |
java.lang.Object |
invoke(java.lang.Object[] params)
Invokes a specific operation using a synchronous request-response interaction mode. |
void |
invokeOneWay(java.lang.Object[] params)
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 |
setEncodingStyle(java.lang.String namespaceURI)
Method setEncodingStyle |
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(XMLType type)
Sets the return type for a specific operation. |
void |
setTargetEndpointAddress(java.net.URL 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 java.lang.String getEncodingStyle()
public void setEncodingStyle(java.lang.String namespaceURI)
namespaceURI
- public void addParameter(java.lang.String paramName, XMLType paramType, int parameterMode)
paramName
- - Name of the parameterparamType
- - XML datatype of the parameterparameterMode
- - Mode of the parameter-whether PARAM_MODE_IN, PARAM_MODE_OUT or PARAM_MODE_INOUTpublic void setReturnType(XMLType type)
type
- - XML data type of the return valuepublic 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.net.URL address)
address
- - Endpoint address of the target service port; specified as URIpublic java.net.URL getTargetEndpointAddress()
public void setProperty(java.lang.String name, java.lang.Object value)
name
- - Name of the propertyvalue
- - Value of the propertypublic java.lang.Object getProperty(java.lang.String name)
name
- - Name of the propertypublic void removeProperty(java.lang.String name)
name
- - Name of the propertypublic java.lang.Object invoke(java.lang.Object[] params) throws java.rmi.RemoteException
params
- - 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[] params) throws JAXRPCException
params
- - 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 |