Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress Web Service Development Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

A.3 Simple Type Mappings

This section describes the XML Schema type to C++ type mapping that HydraExpress uses. If you are mapping to a version of SourcePro other than SourcePro 6.0, see Section A.3.1. Table 15 describes the mapping for XML Schema primitive datatypes

Table 15: Mapping of built-in schema types to C++ types 

Built-in XML Schema TypeSourcePro C++ TypeStandard C++ Library Type

string

RWCString

std::string

boolean

bool

bool

decimal

RWDecimalPortable

std::string

float

float

float

double

double

double

duration

rwsf::TimeSpan1

std::string

dateTime

RWDateTime

std::string

time

RWDateTime

std::string

date

RWDate

std::string

gYearMonth

RWCString

std::string

gYear

RWCString

std::string

gMonthDay

RWCString

std::string

gDay

RWCString

std::string

gMonth

RWCString

std::string

hexBinary

RWCString

std::string

base64Binary

RWCString

std::string

anyURI

RWCString

std::string

QName

RWCString

std::string

Notation

RWCString

std::string

normalizedString

RWCString

std::string

token

RWCString

std::string

byte

short

short

unsigned byte

unsigned short

unsigned short

integer

RWDecimalPortable

std::string

positiveInteger

RWDecimalPortable

std::string

negativeInteger

RWDecimalPortable

std::string

nonNegativeInteger

RWDecimalPortable

std::string

nonPositiveInteger

RWDecimalPortable

std::string

int

int

int

unsignedInt

unsigned int

unsigned int

long

long

long

unsignedLong

unsigned long

unsigned long

short

short

short

unsignedShort

unsigned short

unsigned short

Name

RWCString

std::string

NCName

RWCString

std::string

language

RWCString

std::string

ID

RWCString

std::string

IDREF

RWCString

std::string

IDREFS

RWCString

std::string

ENTITY

RWCString

std::string

ENTITIES

RWCString

std::string

NMTOKEN

RWCString

std::string

  1. For duration, the mapping is to a HydraExpress Library class because there is no good equivalent in SourcePro.

A.3.1 Mapping to Datatypes from Previous SourcePro Editions

If you are mapping to SourcePro datatypes from a version earlier than SourcePro 6.0, you may need to customize your mapping. For instance, if your installation uses RWTime instead of RWDateTime, you will want to map to RWTime instead.

For example, the following classes were added to the Essential Tools Module in recent releases:

To customize your datatypes, create a configuration file specifying your new mapping. For more information, see Section 8.8, "Creating Customized Mappings," in the HydraExpress XML Binding Development Guide.



Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.