Document Properties
Kbid
248Q31
Last Modified
12-Oct-2021
Added to KB
01-Jul-2013
Public Access
Everyone
Status
Online
Doc Type
References
Product
  • ICM 7.10
  • ICM 11
Reference - Data Types of Web Services

1 Introduction

Web services typically take a series of arguments and return a value. Because arguments and return values must always be converted from XML to Java (arguments) and back to XML (return values), respectively, only a subset of data
types is allowed. The following data types can be sent as parameters and received as results:

Note

You can also use arrays based on these data types.

1.1 Primitive Types

The following table lists the primitive data types. See the Axis User's Guide for details on data type mapping.
Primitive Data Types:

Java Type

WSDL Type

boolean

xsd:boolean

byte

xsd:byte

short

xsd:short

int

xsd:int

long

xsd:long

float

xsd:float

double

xsd:double

char

xsd:string

1.2 Java Object Types

The following table lists the Java Object types. See the Axis User Guide for details on data type mapping.
Java Object Types:

Java Type

WSDL Type

java.lang.Boolean

soapenc:boolean

java.lang.Byte

soapenc:byte

java.lang.Short

soapenc:short

java.lang.Integer

soapenc:int

java.lang.Long

soapenc:long

java.lang.Float

soapenc:float

java.lang.Double

soapenc:double

java.lang.String

xsd:string

java.math.BigDecimal

xsd:decimal

java.math.BigInteger

xsd:integer

java.util.Calendar

xsd:dateTime

javax.xml.namespace.QName

xsd:QName

1.3 JavaBeans

Java Beans are data containers used to wrap data types not covered by default. JavaBeans implement the java.io.Serializable interface, have get and set methods for each attribute, and a public constructor. JavaBeans can be modeled in a Rational Rose model and generated automatically using jGen. The possible combination of data types allows you to model complex data structures.

Note

Do not use any Java-specific collection type that SOAP cannot map to XML (e.g., java.util.Hashtable). Use arrays instead.

A client retrieves all necessary information about data types from the WSDL file. This is why it is not possible to implement additional functionality (e.g., parameter checking, content validation, etc.) in a JavaBean.

Disclaimer
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.
The Intershop Knowledge Portal uses only technically necessary cookies. We do not track visitors or have visitors tracked by 3rd parties. Please find further information on privacy in the Intershop Privacy Policy and Legal Notice.
Home
Knowledge Base
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to supportadmin@intershop.de if you experience login issues,
or if you want to register as customer.