org.jboss.webservice.client
Class CallImpl

java.lang.Object
  extended byorg.jboss.axis.client.Call (src) 
      extended byorg.jboss.webservice.client.CallImpl
All Implemented Interfaces:
Call (src)

public class CallImpl
extends Call (src)

A Call object that is ws4ee aware.

It takes the jaxrpc-mapping into account when setting up the call.

Since:
29-May-2004

Field Summary
 
Fields inherited from class org.jboss.axis.client.Call (src)
ATTACHMENT_ENCAPSULATION_FORMAT, ATTACHMENT_ENCAPSULATION_FORMAT_DIME, ATTACHMENT_ENCAPSULATION_FORMAT_MIME, attachmentParts, FAULT_ON_NO_RESPONSE, JAXRPC_PORTTYPE_NAME, JAXRPC_SERVICE, msgContext, SEND_TYPE_ATTR, TRANSPORT_NAME, TRANSPORT_PROPERTY, WSDL_PORT_NAME, WSDL_SERVICE
 
Fields inherited from interface javax.xml.rpc.Call (src)
ENCODINGSTYLE_URI_PROPERTY, OPERATION_STYLE_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, SOAPACTION_URI_PROPERTY, SOAPACTION_USE_PROPERTY, USERNAME_PROPERTY
 
Constructor Summary
CallImpl(java.lang.Object url)
          Build a call from a URL string
CallImpl(ServiceImpl (src)  service)
          Constructs a new Call object for a given jaxrpcService
 
Method Summary
 void addAttachment(java.lang.String contentID, java.lang.Object mimepart)
          Add an attachment with a given contentID See addAttachmentParts for a list of supported types
protected  void addAttachmentParts(Message (src)  msg)
          Add attachment parts to the SOAP message
 java.lang.Object getAttachment(java.lang.String contentID)
          Get the attachment for the given contentID.
 java.util.Iterator getAttachmentIdentifiers()
          Get an iterator over the available contentIDs
protected  java.lang.String getWsdlOpName(java.lang.String javaOpName)
          The default implementation simply returns the java method name.
 java.lang.Object invoke(java.lang.Object[] params)
          Calls the super implementation with either rpc or one-way call semantics.
 void removeAttachment(java.lang.String contentID)
          Remove the attachment for the given contentID.
 void setOperation(java.lang.String javaOpName)
          The super implementation fills in as much as it can from the wsdl.
 
Methods inherited from class org.jboss.axis.client.Call (src)
addAttachmentPart, addFault, addHeader, addParameter, addParameter, addParameter, addParameter, addParameter, addParameterAsHeader, addTransportPackage, clearHeaders, clearOperation, getEncodingStyle, getMaintainSession, getMessageContext, getOperation, getOperationName, getOperationStyle, getOperationUse, getOutputParams, getOutputValues, getParameterTypeByName, getParameterTypeByQName, getPassword, getPortName, getPortTypeName, getProperty, getPropertyNames, getResponseMessage, getReturnType, getScopedProperty, getService, getSOAPActionURI, getTargetEndpointAddress, getTimeout, getTransportForProtocol, getTypeMapping, getUsername, initialize, invoke, invoke, invoke, invoke, invoke, invoke, invokeOneWay, isParameterAndReturnSpecRequired, isPropertySupported, registerTypeMapping, registerTypeMapping, registerTypeMapping, registerTypeMapping, removeAllParameters, removeProperty, removeScopedProperty, setClientHandlers, setEncodingStyle, setMaintainSession, setOperation, setOperation, setOperationName, setOperationName, setOperationStyle, setOperationStyle, setOperationUse, setOperationUse, setOption, setPassword, setPortName, setPortTypeName, setProperty, setRequestMessage, setReturnClass, setReturnQName, setReturnType, setReturnType, setReturnTypeAsHeader, setReturnTypeAsHeader, setScopedProperty, setSOAPActionURI, setSOAPService, setSOAPVersion, setTargetEndpointAddress, setTargetEndpointAddress, setTimeout, setTransport, setTransportForProtocol, setUsername, setUseSOAPAction, useSOAPAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallImpl

public CallImpl(ServiceImpl (src)  service)
Constructs a new Call object for a given jaxrpcService


CallImpl

public CallImpl(java.lang.Object url)
         throws java.net.MalformedURLException
Build a call from a URL string

Parameters:
url - the target endpoint URL
Throws:
java.net.MalformedURLException
Method Detail

setOperation

public void setOperation(java.lang.String javaOpName)
The super implementation fills in as much as it can from the wsdl. This is the main entry point for axis to setup the call, so far we have nothing to add. The only thing we do, is helping axis to find the wsdl operation. This has been stubbed out, see below.

Overrides:
setOperation in class Call (src)
Parameters:
javaOpName - Operation(method) that's going to be invoked

getWsdlOpName

protected java.lang.String getWsdlOpName(java.lang.String javaOpName)
The default implementation simply returns the java method name. A ws4ee implementation would take the jaxrpc-mapping file into consideration and return the corresponding wsdl operation

Overrides:
getWsdlOpName in class Call (src)

addAttachment

public void addAttachment(java.lang.String contentID,
                          java.lang.Object mimepart)
Add an attachment with a given contentID See addAttachmentParts for a list of supported types

Parameters:
contentID - the attachments contentID
mimepart - the attachment part

getAttachmentIdentifiers

public java.util.Iterator getAttachmentIdentifiers()
Get an iterator over the available contentIDs


getAttachment

public java.lang.Object getAttachment(java.lang.String contentID)
Get the attachment for the given contentID.


removeAttachment

public void removeAttachment(java.lang.String contentID)
Remove the attachment for the given contentID.


addAttachmentParts

protected void addAttachmentParts(Message (src)  msg)
Add attachment parts to the SOAP message

Overrides:
addAttachmentParts in class Call (src)

invoke

public java.lang.Object invoke(java.lang.Object[] params)
                        throws java.rmi.RemoteException
Calls the super implementation with either rpc or one-way call semantics.

Specified by:
invoke in interface Call (src)
Overrides:
invoke in class Call (src)
Parameters:
params - Array of parameters to invoke the Web Service with
Returns:
Object Return value of the operation/method - or null
Throws:
java.rmi.RemoteException - if there's an error