View comments | RSS feed

Axis built-in data types

The following table describes the XML data types built into Axis, assigned Axis constants, and equivalent Java data types.

The prefix xsd represents the following XML namespace URI:

http://www.w3.org/2001/XMLSchema

The prefix SOAP-ENC represents the following XML namespace URI:

http://schemas.xmlsoap.org/soap/encoding
XML data type
(prefix represents fully qualified namespace)

Axis constant
for XML data type


Java data type
xsd:string
XSD_STRING
java.lang.String
xsd:boolean
XSD_BOOLEAN
boolean
xsd:double
XSD_DOUBLE
double
xsd:float
XSD_FLOAT
float
xsd:int
XSD_INT
int
xsd:integer
XSD_INTEGER
java.math.BigInteger
xsd:long
XSD_LONG
long
xsd:short
XSD_SHORT
short
xsd:byte
XSD_BYTE
byte
xsd:decimal
XSD_DECIMAL
java.math.BigDecimal
xsd:base64Binary
XSD_BASE64
byte[]
xsd:hexBinary
XSD_HEXBIN
byte[]
xsd:QName
XSD_QNAME
javax.xml.rpc.namespace.QName
xsd:dataTime
XSD_DATE
java.util.date
SOAP-ENC:base64
SOAP_BASE64
byte[]
SOAP-ENC:string
SOAP_STRING
java.lang.String
SOAP-ENC:boolean
SOAP_BOOLEAN
boolean
SOAP-ENC:double
SOAP_DOUBLE
double
SOAP-ENC:float
SOAP_FLOAT
float
SOAP-ENC:int
SOAP_INT
int
SOAP-ENC:long
SOAP_LONG
long
SOAP-ENC:short
SOAP_SHORT
short
SOAP-ENC:byte
SOAP_BYTE
byte
SOAP-ENC:integer
SOAP_INTEGER
java.math.BigInteger
SOAP-ENC:decimal
SOAP_DECIMAL
java.math.BigDecimal
SOAP-ENC:Array
SOAP_ARRAY
array of built-in data types
SOAP-ENC:Map
SOAP_MAP
java.util.HashMap
SOAP-ENC:Element
SOAP_ELEMENT
org.w3c.dom.Element
SOAP-ENC:Vector
SOAP_VECTOR
java.util.Vector

Note:   For a Web Services Tag Library invoke tag with a resulttype in the xsd namespace, you do not need to include the fully qualified xsd namespace URI in a resulttypenamespace attribute. Instead, you can use just the text after the colon, as in resulttype ="double".

When specifying a data type in a dynamic client, you can use the Axis constant, as in:

call.addParameter("testParam", XMLType.XSD_STRING, Call.PARAM_MODE_IN);

call.setReturnType( XMLType.XSD_STRING );

Comments


matias said on Dec 4, 2003 at 11:04 AM :
the 'datetTime' mapping in the types table looks wrong. typo, most likely. shows:

xsd:dataTime XSD_DATE java.util.date
^^^^^^^^^^^^^^^

this should probably be: xsd:dateTime
^^^^^^^^^^^^^^

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/jrun/4/Programmers_Guide/wsclients7.htm