org.apache.axis.encoding
Class ServiceDescription

java.lang.Object
  |
  +--org.apache.axis.encoding.ServiceDescription

public class ServiceDescription
extends java.lang.Object

A very simple service description class, to demonstrate one way to get type information out of band. !!! This wants to be extended beyond just RPC... get away from the focus on Parameters, and just type arbitrarily named elements, hook up with schema systems, build an adapter for parsing types using Castor, etc... So we probably want to migrate the type mapping stuff into here.

Author:
Glen Daniels (gdaniels@macromedia.com)

Field Summary
 java.util.Vector inputParams
          This probably wants to be split into a WSDL-like set of MessageDescription objects, each of which may then have named parts...
 java.util.Vector outputParams
           
static java.lang.String REQUEST
           
static java.lang.String RESPONSE
           
 boolean sendXsiType
           
 
Constructor Summary
ServiceDescription(java.lang.String name, boolean isRPC)
           
 
Method Summary
 void addInputParam(java.lang.String name, QName type)
           
 void addOutputParam(java.lang.String name, QName type)
           
 java.lang.String getEncodingStyleURI()
           
 java.lang.String getInputParamNameByPos(int position)
           
 QName getInputParamTypeByName(java.lang.String paramName)
           
 QName getInputParamTypeByPos(int position)
           
 QName getOutputParamTypeByName(java.lang.String paramName)
           
 QName getOutputParamTypeByPos(int position)
           
 QName getParamTypeByName(java.lang.String messageType, java.lang.String paramName)
          This one is what the outside world wants to use, I think.
 boolean getSendTypeAttr()
           
 boolean isRPC()
           
 void setEncodingStyleURI(java.lang.String uri)
           
 void setOutputType(QName type)
           
 void setSendTypeAttr(boolean sendType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST

public static final java.lang.String REQUEST

RESPONSE

public static final java.lang.String RESPONSE

inputParams

public java.util.Vector inputParams
This probably wants to be split into a WSDL-like set of MessageDescription objects, each of which may then have named parts... that would allow supporting arbitrary message patterns, too. this is just a tiny demo for req/resp RPC.

outputParams

public java.util.Vector outputParams

sendXsiType

public boolean sendXsiType
Constructor Detail

ServiceDescription

public ServiceDescription(java.lang.String name,
                          boolean isRPC)
Method Detail

isRPC

public boolean isRPC()

setEncodingStyleURI

public void setEncodingStyleURI(java.lang.String uri)

getEncodingStyleURI

public java.lang.String getEncodingStyleURI()

addInputParam

public void addInputParam(java.lang.String name,
                          QName type)

addOutputParam

public void addOutputParam(java.lang.String name,
                           QName type)

setOutputType

public void setOutputType(QName type)

setSendTypeAttr

public void setSendTypeAttr(boolean sendType)

getSendTypeAttr

public boolean getSendTypeAttr()

getInputParamTypeByName

public QName getInputParamTypeByName(java.lang.String paramName)

getInputParamTypeByPos

public QName getInputParamTypeByPos(int position)

getInputParamNameByPos

public java.lang.String getInputParamNameByPos(int position)

getParamTypeByName

public QName getParamTypeByName(java.lang.String messageType,
                                java.lang.String paramName)
This one is what the outside world wants to use, I think.

getOutputParamTypeByName

public QName getOutputParamTypeByName(java.lang.String paramName)

getOutputParamTypeByPos

public QName getOutputParamTypeByPos(int position)


Copyright © 2001 Apache XML Project. All Rights Reserved.