站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 webservice API Documentation 英文版文档

CallImpl (JBossWS API) - JBoss 4.0.1 sp1 webservice API Documentation 英文版文档


org.jboss.webservice.client
Class CallImpl

java.lang.Object
  extended byorg.apache.axis.client.Call
      extended byorg.jboss.webservice.client.CallImpl
All Implemented Interfaces:
javax.xml.rpc.Call

public class CallImpl
extends org.apache.axis.client.Call

A Call object that is ws4ee aware.

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

Since:
29-May-2004
Author:
Thomas.Diesler@jboss.org

Field Summary
 
Fields inherited from class org.apache.axis.client.Call
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
ENCODINGSTYLE_URI_PROPERTY, OPERATION_STYLE_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, SOAPACTION_URI_PROPERTY, SOAPACTION_USE_PROPERTY, USERNAME_PROPERTY
 
Constructor Summary
CallImpl(Object url)
          Build a call from a URL string
CallImpl(ServiceImpl service)
          Constructs a new Call object for a given jaxrpcService
 
Method Summary
 void addAttachment(String contentID, Object mimepart)
          Add an attachment with a given contentID See addAttachmentParts for a list of supported types
protected  void addAttachmentParts(org.apache.axis.Message msg)
          Add attachment parts to the SOAP message
 Object getAttachment(String contentID)
          Get the attachment for the given contentID.
 Iterator getAttachmentIdentifiers()
          Get an iterator over the available contentIDs
protected  String getWsdlOpName(String javaOpName)
          The default implementation simply returns the java method name.
 Object invoke(Object[] params)
          Calls the super implementation with either rpc or one-way call semantics.
 void removeAttachment(String contentID)
          Remove the attachment for the given contentID.
 void setOperation(String javaOpName)
          The super implementation fills in as much as it can from the wsdl.
 
Methods inherited from class org.apache.axis.client.Call
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 service)
Constructs a new Call object for a given jaxrpcService


CallImpl

public CallImpl(Object url)
         throws MalformedURLException
Build a call from a URL string

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

setOperation

public void setOperation(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.


getWsdlOpName

protected String getWsdlOpName(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


addAttachment

public void addAttachment(String contentID,
                          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 Iterator getAttachmentIdentifiers()
Get an iterator over the available contentIDs


getAttachment

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


removeAttachment

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


addAttachmentParts

protected void addAttachmentParts(org.apache.axis.Message msg)
Add attachment parts to the SOAP message


invoke

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

Throws:
RemoteException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.