|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The javax.xml.rpc.Call interface provides support for the dynamic invocation of a service endpoint. 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.
| Field Summary | |
static String |
ENCODINGSTYLE_URI_PROPERTY
Standard property for encoding Style: Encoding style specified as a namespace URI. |
static String |
OPERATION_STYLE_PROPERTY
Standard property for operation style. |
static String |
PASSWORD_PROPERTY
Standard property: Password for authentication Type: java.lang.String |
static String |
SESSION_MAINTAIN_PROPERTY
Standard property: This boolean property is used by a service client to indicate whether or not it wants to participate in a session with a service endpoint. |
static String |
SOAPACTION_URI_PROPERTY
Standard property for SOAPAction. |
static String |
SOAPACTION_USE_PROPERTY
Standard property for SOAPAction. |
static String |
USERNAME_PROPERTY
Standard property: User name for authentication Type: java.lang.String |
| Method Summary | |
void |
addParameter(String paramName,
javax.xml.namespace.QName xmlType,
Class javaType,
ParameterMode parameterMode)
Adds a parameter type and mode for a specific operation. |
void |
addParameter(String paramName,
javax.xml.namespace.QName xmlType,
ParameterMode parameterMode)
Adds a parameter type and mode for a specific operation. |
javax.xml.namespace.QName |
getOperationName()
Gets the name of the operation to be invoked using this Call instance. |
Map |
getOutputParams()
Returns a Map of {name, value} for the output parameters of the last invoked operation. |
List |
getOutputValues()
Returns a List values for the output parameters of the last invoked operation. |
javax.xml.namespace.QName |
getParameterTypeByName(String paramName)
Gets the XML type of a parameter by name. |
javax.xml.namespace.QName |
getPortTypeName()
Gets the qualified name of the port type. |
Object |
getProperty(String name)
Gets the value of a named property. |
Iterator |
getPropertyNames()
Gets the names of configurable properties supported by this Call object. |
javax.xml.namespace.QName |
getReturnType()
Gets the return type for a specific operation |
String |
getTargetEndpointAddress()
Gets the address of a target service endpoint. |
Object |
invoke(Object[] inputParams)
Invokes a specific operation using a synchronous request-response interaction mode. |
Object |
invoke(javax.xml.namespace.QName operationName,
Object[] inputParams)
Invokes a specific operation using a synchronous request-response interaction mode. |
void |
invokeOneWay(Object[] inputParams)
Invokes a remote method using the one-way interaction mode. |
boolean |
isParameterAndReturnSpecRequired(javax.xml.namespace.QName operationName)
Indicates whether addParameter and setReturnType methods are to be invoked to specify the parameter and return type specification for a specific operation. |
void |
removeAllParameters()
Removes all specified parameters from this Call instance. |
void |
removeProperty(String name)
Removes a named property. |
void |
setOperationName(javax.xml.namespace.QName operationName)
Sets the name of the operation to be invoked using this Call instance. |
void |
setPortTypeName(javax.xml.namespace.QName portType)
Sets the qualified name of the port type. |
void |
setProperty(String name,
Object value)
Sets the value for a named property. |
void |
setReturnType(javax.xml.namespace.QName xmlType)
Sets the return type for a specific operation. |
void |
setReturnType(javax.xml.namespace.QName xmlType,
Class javaType)
Sets the return type for a specific operation. |
void |
setTargetEndpointAddress(String address)
Sets the address of the target service endpoint. |
| Field Detail |
public static final String ENCODINGSTYLE_URI_PROPERTY
public static final String OPERATION_STYLE_PROPERTY
public static final String PASSWORD_PROPERTY
public static final String SESSION_MAINTAIN_PROPERTY
public static final String SOAPACTION_URI_PROPERTY
public static final String SOAPACTION_USE_PROPERTY
public static final String USERNAME_PROPERTY
| Method Detail |
public void removeAllParameters()
JAXRPCException - This exception may be thrown If this method is called when the method isParameterAndReturnSpecRequired returns false for this Call's operation.public void invokeOneWay(Object[] inputParams)
inputParams - Object[]--Parameters for this invocation. This includes only the input params.
JAXRPCException - 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 callpublic String getTargetEndpointAddress()
public void removeProperty(String name)
name - Name of the property
JAXRPCException - if an invalid or unsupported property name is passed.public void setTargetEndpointAddress(String address)
address - Address of the target service endpoint; specified as an URIpublic Iterator getPropertyNames()
public List getOutputValues()
JAXRPCException - If this method is invoked for a one-way operation or is invoked before any invoke method has been called.public Map getOutputParams()
JAXRPCException - If this method is invoked for a one-way operation or is invoked before any invoke method has been called.public javax.xml.namespace.QName getOperationName()
public javax.xml.namespace.QName getPortTypeName()
public javax.xml.namespace.QName getReturnType()
public void setOperationName(javax.xml.namespace.QName operationName)
operationName - QName of the operation to be invoked using the Call instancepublic void setPortTypeName(javax.xml.namespace.QName portType)
portType - - Qualified name of the port typepublic boolean isParameterAndReturnSpecRequired(javax.xml.namespace.QName operationName)
operationName - Qualified name of the operation
IllegalArgumentException - If invalid operation name is specifiedpublic void setReturnType(javax.xml.namespace.QName xmlType)
xmlType - XML data type of the return value
JAXRPCException - This exception may be thrown when the method isParameterAndReturnSpecRequired returns false.
IllegalArgumentException - If an illegal XML type is specified
public void setReturnType(javax.xml.namespace.QName xmlType,
Class javaType)
xmlType - XML data type of the return valuejavaType - Java Class of the return value
JAXRPCException - UnsupportedOperationException - If this method is not supported
IllegalArgumentException - If an illegal XML type is specifiedpublic Object invoke(Object[] inputParams) throws RemoteException
inputParams - Object[]--Parameters for this invocation. This includes only the input params
RemoteException - if there is any error in the remote method invocation
SOAPFaultException - Indicates a SOAP fault
JAXRPCException - public Object getProperty(String name)
name - Name of the property
JAXRPCException - if an invalid or unsupported property name is passed.public void setProperty(String name, Object value)
name - Name of the propertyvalue - Value of the property
JAXRPCException - public javax.xml.namespace.QName getParameterTypeByName(String paramName)
paramName - - Name of the parameter
public Object invoke(javax.xml.namespace.QName operationName, Object[] inputParams) throws RemoteException
operationName - QName of the operationinputParams - Object[]--Parameters for this invocation. This includes only the input params.
RemoteException - if there is any error in the remote method invocation.
SOAPFaultException - - Indicates a SOAP fault
JAXRPCException - public void addParameter(String paramName, javax.xml.namespace.QName xmlType, ParameterMode parameterMode)
paramName - Name of the parameterxmlType - XML type of the parameterparameterMode - Mode of the parameter-whether ParameterMode.IN, ParameterMode.OUT, or ParameterMode.INOUT
JAXRPCException - This exception may be thrown if the method isParameterAndReturnSpecRequired returns false for this operation.
IllegalArgumentException - If any illegal parameter name or XML type is specifiedpublic void addParameter(String paramName, javax.xml.namespace.QName xmlType, Class javaType, ParameterMode parameterMode)
paramName - Name of the parameterxmlType - XML type of the parameterjavaType - Java class of the parameterparameterMode - Mode of the parameter-whether ParameterMode.IN, ParameterMode.OUT, or ParameterMode.INOUT
JAXRPCException - IllegalArgumentException - If any illegal parameter name or XML type is specified
UnsupportedOperationException - If this method is not supported
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||