|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis.client.Call
Axis' JAXRPC Dynamic Invocation Interface implementation of the Call interface. This class should be used to actually invoke the Web Service. It can be prefilled by a WSDL document (on the constructor to the Service object) or you can fill in the data yourself.
Standard properties defined by in JAX-RPC's javax..xml.rpc.Call interface: USERNAME_PROPERTY - User name for authentication PASSWORD_PROPERTY - Password for authentication SESSION_PROPERTY - Participate in a session with the endpoint? OPERATION_STYLE_PROPERTY - "rpc" or "document" SOAPACTION_USE_PROPERTY - Should SOAPAction be used? SOAPACTION_URI_PROPERTY - If SOAPAction is used, this is that action ENCODING_STYLE_PROPERTY - Default is SOAP 1.1: "http://schemas.xmlsoap.org/soap/encoding/" AXIS properties: SEND_TYPE_ATTR - Should we send the XSI type attributes (true/false) TIMEOUT - Timeout used by transport sender in milliseconds TRANSPORT_NAME - Name of transport handler to use ATTACHMENT_ENCAPSULATION_FORMAT- Send attachments as MIME the default, or DIME. CHARACTER_SET_ENCODING - Character set encoding to use for request
Field Summary | |
static java.lang.String |
ATTACHMENT_ENCAPSULATION_FORMAT
Property for setting attachment format. |
static java.lang.String |
ATTACHMENT_ENCAPSULATION_FORMAT_DIME
Property value for setting attachment format as DIME. |
static java.lang.String |
ATTACHMENT_ENCAPSULATION_FORMAT_MIME
Property value for setting attachment format as MIME. |
static java.lang.String |
CHARACTER_SET_ENCODING
This is the character set encoding to use for the message |
static java.lang.String |
CHECK_MUST_UNDERSTAND
If this property is true, code will enforce must understand check on both the request and the response paths. |
static java.lang.String |
CONNECTION_TIMEOUT_PROPERTY
Timeout property: should be accompanies by an integer |
static java.lang.String |
FAULT_ON_NO_RESPONSE
If this property is true, the code will throw a fault if there is no response message from the server. |
static java.lang.String |
JAXRPC_PORTTYPE_NAME
Deprecated. use WSDL_PORT_NAME instead. |
static java.lang.String |
JAXRPC_SERVICE
Deprecated. use WSDL_SERVICE instead. |
static java.lang.String |
SEND_TYPE_ATTR
|
static java.lang.String |
STREAMING_PROPERTY
Streaming property: should be accompanied by an boolean (i.e. |
static java.lang.String |
TRANSPORT_NAME
This is the name of a property to set the transport of the message |
static java.lang.String |
TRANSPORT_PROPERTY
This is not the name of a property that can be set with setProperty, despite its name. |
static java.lang.String |
WSDL_PORT_NAME
this is a property set in the message context when the invocation process begins, for the benefit of handlers |
static java.lang.String |
WSDL_SERVICE
this is a property set in the message context when the invocation process begins, for the benefit of handlers |
Fields inherited from interface javax.xml.rpc.Call |
ENCODINGSTYLE_URI_PROPERTY, OPERATION_STYLE_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, SOAPACTION_URI_PROPERTY, SOAPACTION_USE_PROPERTY, USERNAME_PROPERTY |
Constructor Summary | |
Call(Service service)
Default constructor - not much else to say. |
|
Call(java.lang.String url)
Build a call from a URL string. |
|
Call(java.net.URL url)
Build a call from a URL. |
Method Summary | |
void |
addAttachmentPart(java.lang.Object attachment)
This method adds an attachment. |
void |
addFault(QName qname,
java.lang.Class cls,
QName xmlType,
boolean isComplex)
Add a fault for this operation. |
void |
addHeader(SOAPHeaderElement header)
Add a header which should be inserted into each outgoing message we generate. |
void |
addParameter(QName paramName,
QName xmlType,
java.lang.Class javaType,
ParameterMode parameterMode)
Adds the specified parameter to the list of parameters for the operation associated with this Call object. |
void |
addParameter(QName paramName,
QName xmlType,
ParameterMode parameterMode)
Adds the specified parameter to the list of parameters for the operation associated with this Call object. |
void |
addParameter(java.lang.String paramName,
QName xmlType,
java.lang.Class javaType,
ParameterMode parameterMode)
Adds a parameter type and mode for a specific operation. |
void |
addParameter(java.lang.String paramName,
QName xmlType,
ParameterMode parameterMode)
Adds the specified parameter to the list of parameters for the operation associated with this Call object. |
void |
addParameterAsHeader(QName paramName,
QName xmlType,
java.lang.Class javaType,
ParameterMode parameterMode,
ParameterMode headerMode)
Adds a parameter type as a soap:header. |
void |
addParameterAsHeader(QName paramName,
QName xmlType,
ParameterMode parameterMode,
ParameterMode headerMode)
Adds a parameter type as a soap:header. |
static void |
addTransportPackage(java.lang.String packageName)
Add a package to the system protocol handler search path. |
void |
clearHeaders()
Clear the list of headers which we insert into each message Note: Not part of JAX-RPC specification. |
void |
clearOperation()
|
java.lang.String |
getEncodingStyle()
Returns the encoding style as a URI that should be used for the SOAP message. |
boolean |
getMaintainSession()
Get the value of maintainSession flag. |
MessageContext |
getMessageContext()
Obtain a reference to our MessageContext. |
OperationDesc |
getOperation()
|
QName |
getOperationName()
Returns the operation name associated with this Call object. |
org.apache.axis.constants.Style |
getOperationStyle()
Get the operation style. |
org.apache.axis.constants.Use |
getOperationUse()
Get the operation use. |
java.util.Map |
getOutputParams()
Get the output parameters (if any) from the last invocation. |
java.util.List |
getOutputValues()
Returns a List values for the output parameters of the last invoked operation. |
QName |
getParameterTypeByName(java.lang.String paramName)
Return the QName of the type of the parameters with the given name. |
QName |
getParameterTypeByQName(QName paramQName)
Return the QName of the type of the parameters with the given name. |
java.lang.String |
getPassword()
Get the password. |
QName |
getPortName()
Returns the fully qualified name of the port for this Call object (if there is one). |
QName |
getPortTypeName()
Returns the fully qualified name of the port type for this Call object (if there is one). |
java.lang.Object |
getProperty(java.lang.String name)
Returns the value associated with the named property. |
java.util.Iterator |
getPropertyNames()
Gets the names of configurable properties supported by this Call object. |
Message |
getResponseMessage()
Directly get the response message in our MessageContext. |
QName |
getReturnType()
Returns the QName of the type of the return value of this Call - or null if not set. |
Service |
getService()
Get the Service object associated with this Call object. |
java.lang.String |
getSOAPActionURI()
Get the soapAction URI. |
boolean |
getStreaming()
|
java.lang.String |
getTargetEndpointAddress()
Returns the URL of the target Web Service. |
java.lang.Integer |
getTimeout()
|
Transport |
getTransportForProtocol(java.lang.String protocol)
Get the Transport registered for the given protocol. |
org.apache.axis.encoding.TypeMapping |
getTypeMapping()
|
java.lang.String |
getUsername()
Get the user name. |
static void |
initialize()
Set up the default transport URL mappings. |
void |
invoke()
Invoke this Call with its established MessageContext (perhaps because you called this.setRequestMessage()) Note: Not part of JAX-RPC specification. |
SOAPEnvelope |
invoke(Message msg)
Invoke the service with a custom Message. |
java.lang.Object |
invoke(java.lang.Object[] params)
Invokes the operation associated with this Call object using the passed in parameters as the arguments to the method. |
java.lang.Object |
invoke(QName operationName,
java.lang.Object[] params)
Invokes a specific operation using a synchronous request-response interaction mode. |
java.lang.Object |
invoke(RPCElement body)
Invoke an RPC service with a pre-constructed RPCElement. |
SOAPEnvelope |
invoke(SOAPEnvelope env)
Invoke the service with a custom SOAPEnvelope. |
java.lang.Object |
invoke(java.lang.String method,
java.lang.Object[] args)
Convenience method to invoke a method with a default (empty) namespace. |
java.lang.Object |
invoke(java.lang.String namespace,
java.lang.String method,
java.lang.Object[] args)
Invoke an RPC service with a method name and arguments. |
void |
invokeOneWay(java.lang.Object[] params)
Invokes the operation associated with this Call object using the passed in parameters as the arguments to the method. |
boolean |
isParameterAndReturnSpecRequired(QName operationName)
Is the caller required to provide the parameter and return type specification? If true, then addParameter and setReturnType MUST be called to provide the meta data. |
boolean |
isPropertySupported(java.lang.String name)
|
void |
registerTypeMapping(java.lang.Class javaType,
QName xmlType,
java.lang.Class sfClass,
java.lang.Class dfClass)
register this type matting |
void |
registerTypeMapping(java.lang.Class javaType,
QName xmlType,
java.lang.Class sfClass,
java.lang.Class dfClass,
boolean force)
register a type. |
void |
registerTypeMapping(java.lang.Class javaType,
QName xmlType,
org.apache.axis.encoding.SerializerFactory sf,
org.apache.axis.encoding.DeserializerFactory df)
Register type mapping information for serialization/deserialization Note: Not part of JAX-RPC specification. |
void |
registerTypeMapping(java.lang.Class javaType,
QName xmlType,
org.apache.axis.encoding.SerializerFactory sf,
org.apache.axis.encoding.DeserializerFactory df,
boolean force)
Register type mapping information for serialization/deserialization Note: Not part of JAX-RPC specification. |
void |
removeAllParameters()
Clears the list of parameters. |
void |
removeProperty(java.lang.String name)
Removes (if set) the named property. |
void |
setClientHandlers(Handler reqHandler,
Handler respHandler)
Sets the client-side request and response Handlers. |
void |
setEncodingStyle(java.lang.String namespaceURI)
Sets the encoding style to the URL passed in. |
void |
setMaintainSession(boolean yesno)
Determine whether we'd like to track sessions or not. |
void |
setOperation(OperationDesc operation)
Hand a complete OperationDesc to the Call, and note that this was done so that others don't try to mess with it by calling addParameter, setReturnType, etc. |
void |
setOperation(QName portName,
QName opName)
prefill as much info from the WSDL as it can. |
void |
setOperation(QName portName,
java.lang.String opName)
prefill as much info from the WSDL as it can. |
void |
setOperation(java.lang.String opName)
Prefill as much info from the WSDL as it can. |
void |
setOperationName(QName opName)
Sets the operation name associated with this Call object. |
void |
setOperationName(java.lang.String opName)
This is a convenience method. |
void |
setOperationStyle(java.lang.String operationStyle)
Set the operation style: "document", "rpc" |
void |
setOperationStyle(org.apache.axis.constants.Style operationStyle)
Set the operation style |
void |
setOperationUse(java.lang.String operationUse)
Set the operation use: "literal", "encoded" |
void |
setOperationUse(org.apache.axis.constants.Use operationUse)
Set the operation use |
void |
setOption(java.lang.String name,
java.lang.Object value)
Set engine option. |
void |
setPassword(java.lang.String password)
Set the password. |
void |
setPortName(QName portName)
Sets the port name of this Call object. |
void |
setPortTypeName(QName portType)
Sets the port type name of this Call object. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Allows you to set a named property to the passed in value. |
void |
setRequestMessage(Message msg)
Directly set the request message in our MessageContext. |
void |
setReturnClass(java.lang.Class cls)
Sets the desired return Java Class. |
void |
setReturnQName(QName qname)
Set the QName of the return element NOT part of JAX-RPC |
void |
setReturnType(QName type)
Sets the return type of the operation associated with this Call object. |
void |
setReturnType(QName xmlType,
java.lang.Class javaType)
Sets the return type for a specific operation. |
void |
setReturnTypeAsHeader(QName xmlType)
Set the return type as a header |
void |
setReturnTypeAsHeader(QName xmlType,
java.lang.Class javaType)
Set the return type as a header |
void |
setSOAPActionURI(java.lang.String SOAPActionURI)
Set the soapAction URI. |
void |
setSOAPService(org.apache.axis.handlers.soap.SOAPService service)
Set the service so that it defers missing property gets to the Call. |
void |
setSOAPVersion(SOAPConstants soapConstants)
Allow the user to set the default SOAP version. |
void |
setStreaming(boolean useStreaming)
|
void |
setTargetEndpointAddress(java.lang.String address)
Sets the endpoint address of the target service port. |
void |
setTargetEndpointAddress(java.net.URL address)
Sets the URL of the target Web Service. |
void |
setTimeout(java.lang.Integer timeout)
|
void |
setTransport(Transport trans)
Set the Transport Note: Not part of JAX-RPC specification. |
static void |
setTransportForProtocol(java.lang.String protocol,
java.lang.Class transportClass)
Register a Transport that should be used for URLs of the specified protocol. |
void |
setUsername(java.lang.String username)
Set the username. |
void |
setUseSOAPAction(boolean useSOAPAction)
Flag to indicate if soapAction should be used. |
boolean |
useSOAPAction()
Discover if soapAction is being used. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SEND_TYPE_ATTR
public static final java.lang.String TRANSPORT_NAME
setProperty(java.lang.String, java.lang.Object)
,
Constant Field Valuespublic static final java.lang.String CHARACTER_SET_ENCODING
setProperty(java.lang.String, java.lang.Object)
,
Constant Field Valuespublic static final java.lang.String TRANSPORT_PROPERTY
public static final java.lang.String WSDL_SERVICE
public static final java.lang.String WSDL_PORT_NAME
public static final java.lang.String JAXRPC_SERVICE
public static final java.lang.String JAXRPC_PORTTYPE_NAME
public static final java.lang.String FAULT_ON_NO_RESPONSE
public static final java.lang.String CHECK_MUST_UNDERSTAND
public static final java.lang.String ATTACHMENT_ENCAPSULATION_FORMAT
setProperty(java.lang.String, java.lang.Object)
,
ATTACHMENT_ENCAPSULATION_FORMAT_DIME
,
ATTACHMENT_ENCAPSULATION_FORMAT_MIME
,
Constant Field Valuespublic static final java.lang.String ATTACHMENT_ENCAPSULATION_FORMAT_MIME
public static final java.lang.String ATTACHMENT_ENCAPSULATION_FORMAT_DIME
public static final java.lang.String CONNECTION_TIMEOUT_PROPERTY
setProperty(java.lang.String, java.lang.Object)
,
Constant Field Valuespublic static final java.lang.String STREAMING_PROPERTY
setProperty(java.lang.String, java.lang.Object)
,
Constant Field ValuesConstructor Detail |
public Call(Service service)
service
- the Service
this Call
will
work withpublic Call(java.lang.String url) throws java.net.MalformedURLException
url
- the target endpoint URL
java.net.MalformedURLException
public Call(java.net.URL url)
url
- the target endpoint URLMethod Detail |
public void setProperty(java.lang.String name, java.lang.Object value)
setProperty
in interface Call
name
- Name of the propertyvalue
- Value of the propertyStub
,
There are other properties implemented in this class above and
beyond those of the JAX-RPC spec
Specifically, ATTACHMENT_ENCAPSULATION_FORMAT, CONNECTION_TIMEOUT_PROPERTY,
and TRANSPORT_NAME.
It is intended that all future Axis-specific properties will begin
with axis. or apache. To ensure integration with future versions Axis,
use different prefixes for your own properties.
Axis developers: keep this in sync with propertyNames below
,
ATTACHMENT_ENCAPSULATION_FORMAT
,
TRANSPORT_NAME
,
CONNECTION_TIMEOUT_PROPERTY
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface Call
name
- the name of the property
JAXRPCException
- if the requested property is not a supported propertypublic void removeProperty(java.lang.String name)
removeProperty
in interface Call
name
- name of the property to removepublic java.util.Iterator getPropertyNames()
Call
Call
object.
getPropertyNames
in interface Call
public boolean isPropertySupported(java.lang.String name)
public void setUsername(java.lang.String username)
username
- the new user namepublic java.lang.String getUsername()
public void setPassword(java.lang.String password)
password
- plain-text copy of the passwordpublic java.lang.String getPassword()
public void setMaintainSession(boolean yesno)
yesno
- true if session state is desired, false if not.public boolean getMaintainSession()
public void setOperationStyle(java.lang.String operationStyle)
operationStyle
- string designating stylepublic void setOperationStyle(org.apache.axis.constants.Style operationStyle)
operationStyle
- public org.apache.axis.constants.Style getOperationStyle()
Style
of the operationpublic void setOperationUse(java.lang.String operationUse)
operationUse
- string designating usepublic void setOperationUse(org.apache.axis.constants.Use operationUse)
operationUse
- public org.apache.axis.constants.Use getOperationUse()
Use
of the operationpublic void setUseSOAPAction(boolean useSOAPAction)
useSOAPAction
- true if the soapAction header is to be used to
help find the method to invoke, false otherwisepublic boolean useSOAPAction()
public void setSOAPActionURI(java.lang.String SOAPActionURI)
SOAPActionURI
- the new SOAP action URIpublic java.lang.String getSOAPActionURI()
public void setEncodingStyle(java.lang.String namespaceURI)
namespaceURI
- URI of the encoding to use.public java.lang.String getEncodingStyle()
public void setTargetEndpointAddress(java.lang.String address)
setTargetEndpointAddress
in interface Call
address
- - Endpoint address of the target service port; specified
as URIpublic void setTargetEndpointAddress(java.net.URL address)
address
- URL of the target Web Servicepublic java.lang.String getTargetEndpointAddress()
getTargetEndpointAddress
in interface Call
public java.lang.Integer getTimeout()
public void setTimeout(java.lang.Integer timeout)
public boolean getStreaming()
public void setStreaming(boolean useStreaming)
public boolean isParameterAndReturnSpecRequired(QName operationName)
isParameterAndReturnSpecRequired
in interface Call
operationName
- Qualified name of the operation
public void addParameter(QName paramName, QName xmlType, ParameterMode parameterMode)
paramName
- Name that will be used for the parameter in the XMLxmlType
- XMLType of the parameterparameterMode
- one of IN, OUT or INOUTpublic void addParameter(QName paramName, QName xmlType, java.lang.Class javaType, ParameterMode parameterMode)
paramName
- Name that will be used for the parameter in the XMLxmlType
- XMLType of the parameterjavaType
- The Java class of the parameterparameterMode
- one of IN, OUT or INOUTpublic void addParameter(java.lang.String paramName, QName xmlType, ParameterMode parameterMode)
addParameter
in interface Call
paramName
- Name that will be used for the parameter in the XMLxmlType
- XMLType of the parameterparameterMode
- one of IN, OUT or INOUTpublic void addParameter(java.lang.String paramName, QName xmlType, java.lang.Class javaType, ParameterMode parameterMode)
addParameter
in interface Call
paramName
- - Name of the parameterxmlType
- - XML datatype of the parameterjavaType
- - The Java class of the parameterparameterMode
- - Mode of the parameter-whether IN, OUT or INOUT
JAXRPCException
- - if isParameterAndReturnSpecRequired returns
false, then addParameter MAY throw
JAXRPCException....actually Axis allows
modification in such casespublic void addParameterAsHeader(QName paramName, QName xmlType, ParameterMode parameterMode, ParameterMode headerMode)
paramName
- - Name of the parameterxmlType
- - XML datatype of the parameterparameterMode
- - Mode of the parameter-whether IN, OUT or INOUTheaderMode
- - Mode of the header. Even if this is an INOUT
parameter, it need not be in the header in both
directions.
JAXRPCException
- - if isParameterAndReturnSpecRequired returns
false, then addParameter MAY throw
JAXRPCException....actually Axis allows
modification in such casespublic void addParameterAsHeader(QName paramName, QName xmlType, java.lang.Class javaType, ParameterMode parameterMode, ParameterMode headerMode)
paramName
- - Name of the parameterxmlType
- - XML datatype of the parameterjavaType
- - The Java class of the parameterparameterMode
- - Mode of the parameter-whether IN, OUT or INOUTheaderMode
- - Mode of the header. Even if this is an INOUT
parameter, it need not be in the header in both
directions.
JAXRPCException
- - if isParameterAndReturnSpecRequired returns
false, then addParameter MAY throw
JAXRPCException....actually Axis allows
modification in such casespublic QName getParameterTypeByName(java.lang.String paramName)
getParameterTypeByName
in interface Call
paramName
- name of the parameter to return
public QName getParameterTypeByQName(QName paramQName)
paramQName
- QName of the parameter to return
public void setReturnType(QName type)
setReturnType
in interface Call
type
- QName of the return value type.public void setReturnType(QName xmlType, java.lang.Class javaType)
setReturnType
in interface Call
xmlType
- - QName of the data type of the return valuejavaType
- - Java class of the return value
JAXRPCException
- - if isParameterAndReturnSpecRequired returns
false, then setReturnType MAY throw JAXRPCException...Axis allows
modification without throwing the exception.public void setReturnTypeAsHeader(QName xmlType)
public void setReturnTypeAsHeader(QName xmlType, java.lang.Class javaType)
public QName getReturnType()
getReturnType
in interface Call
public void setReturnQName(QName qname)
public void setReturnClass(java.lang.Class cls)
cls
- the desired return class.public void removeAllParameters()
removeAllParameters
in interface Call
JAXRPCException
- - if isParameterAndReturnSpecRequired returns
false, then removeAllParameters MAY throw JAXRPCException...Axis allows
modification to the Call object without throwing an exception.public QName getOperationName()
getOperationName
in interface Call
public void setOperationName(QName opName)
setOperationName
in interface Call
opName
- Name of the operation.public void setOperationName(java.lang.String opName)
public void setOperation(java.lang.String opName)
opName
- Operation(method) that's going to be invoked
JAXRPCException
public void setOperation(QName portName, java.lang.String opName)
portName
- PortName in the WSDL doc to search foropName
- Operation(method) that's going to be invokedpublic void setOperation(QName portName, QName opName)
portName
- PortName in the WSDL doc to search foropName
- Operation(method) that's going to be invokedpublic QName getPortName()
public void setPortName(QName portName)
portName
- Fully qualified name of the portpublic QName getPortTypeName()
getPortTypeName
in interface Call
public void setPortTypeName(QName portType)
setPortTypeName
in interface Call
portType
- Fully qualified name of the portTypepublic void setSOAPVersion(SOAPConstants soapConstants)
soapConstants
- the SOAPConstants object representing the correct
versionpublic java.lang.Object invoke(QName operationName, java.lang.Object[] params) throws java.rmi.RemoteException
invoke
in interface Call
operationName
- - Name of the operation to invokeparams
- - Parameters for this invocation
java.rmi.RemoteException
- - if there is any error in the remote method invocation or if the Call
object is not configured properly.public java.lang.Object invoke(java.lang.Object[] params) throws java.rmi.RemoteException
invoke
in interface Call
params
- Array of parameters to invoke the Web Service with
java.rmi.RemoteException
- if there's an errorpublic void invokeOneWay(java.lang.Object[] params)
invokeOneWay
in interface Call
params
- Array of parameters to invoke the Web Service with
JAXRPCException
- is there's an errorpublic SOAPEnvelope invoke(Message msg) throws AxisFault
Note: Not part of JAX-RPC specification.
msg
- a Message to send
AxisFault
- if there is any failurepublic SOAPEnvelope invoke(SOAPEnvelope env) throws AxisFault
Note: Not part of JAX-RPC specification.
env
- a SOAPEnvelope to send
AxisFault
- if there is any failurepublic static void setTransportForProtocol(java.lang.String protocol, java.lang.Class transportClass)
protocol
- the URL protocol (i.e. "tcp" for "tcp://" urls)transportClass
- the class of a Transport type which will be used
for matching URLs.public static void initialize()
public static void addTransportPackage(java.lang.String packageName)
packageName
- the package in which to search for protocol names.public void setTransport(Transport trans)
trans
- the Transport object we'll use to set up
MessageContext properties.public Transport getTransportForProtocol(java.lang.String protocol)
protocol
- a protocol such as "http" or "local" which may
have a Transport object associated with it.
public void setRequestMessage(Message msg)
msg
- the new request message.
java.lang.RuntimeException
- containing the text of an AxisFault, if any
AxisFault was thrownpublic Message getResponseMessage()
public MessageContext getMessageContext()
public void addHeader(SOAPHeaderElement header)
header
- a SOAPHeaderElement to be inserted into messagespublic void clearHeaders()
public org.apache.axis.encoding.TypeMapping getTypeMapping()
public void registerTypeMapping(java.lang.Class javaType, QName xmlType, org.apache.axis.encoding.SerializerFactory sf, org.apache.axis.encoding.DeserializerFactory df)
javaType
- is the Java class of the data type.xmlType
- the xsi:type QName of the associated XML type.public void registerTypeMapping(java.lang.Class javaType, QName xmlType, org.apache.axis.encoding.SerializerFactory sf, org.apache.axis.encoding.DeserializerFactory df, boolean force)
javaType
- is the Java class of the data type.xmlType
- the xsi:type QName of the associated XML type.force
- Indicates whether to add the information if already registered.public void registerTypeMapping(java.lang.Class javaType, QName xmlType, java.lang.Class sfClass, java.lang.Class dfClass)
javaType
- xmlType
- sfClass
- dfClass
- public void registerTypeMapping(java.lang.Class javaType, QName xmlType, java.lang.Class sfClass, java.lang.Class dfClass, boolean force)
javaType
- java type to handlexmlType
- XML mappingsfClass
- class of serializer factorydfClass
- class of deserializer factoryforce
- public java.lang.Object invoke(java.lang.String namespace, java.lang.String method, java.lang.Object[] args) throws AxisFault
namespace
- the desired namespace URI of the method elementmethod
- the method nameargs
- an array of Objects representing the arguments to the
invoked method. If any of these objects are RPCParams,
Axis will use the embedded name of the RPCParam as the
name of the parameter. Otherwise, we will serialize
each argument as an XML element called "argAxisFault
public java.lang.Object invoke(java.lang.String method, java.lang.Object[] args) throws AxisFault
method
- the method nameargs
- an array of Objects representing the arguments to the
invoked method. If any of these objects are RPCParams,
Axis will use the embedded name of the RPCParam as the
name of the parameter. Otherwise, we will serialize
each argument as an XML element called "argAxisFault
public java.lang.Object invoke(RPCElement body) throws AxisFault
body
- an RPCElement containing all the information about
this call.
AxisFault
public void setOption(java.lang.String name, java.lang.Object value)
public void invoke() throws AxisFault
AxisFault
public java.util.Map getOutputParams()
getOutputParams
in interface Call
public java.util.List getOutputValues()
getOutputValues
in interface Call
JAXRPCException
- - If this method is invoked for a
one-way operation or is invoked
before any invoke method has been called.public Service getService()
public void setSOAPService(org.apache.axis.handlers.soap.SOAPService service)
public void setClientHandlers(Handler reqHandler, Handler respHandler)
public void addAttachmentPart(java.lang.Object attachment)
Note: Not part of JAX-RPC specification.
attachment
- the Object
to attach
java.lang.RuntimeException
- if there is no support for attachmentspublic void addFault(QName qname, java.lang.Class cls, QName xmlType, boolean isComplex)
Note: Not part of JAX-RPC specificaion.
qname
- qname of the faultcls
- class of the faultxmlType
- XML type of the faultisComplex
- true if xmlType is a complex type, false otherwisepublic void setOperation(OperationDesc operation)
operation
- the OperationDesc to associate with this call.public OperationDesc getOperation()
public void clearOperation()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |