Mapping PostgreSQL Datatype to XSD Type

Database Type XSD Type
bigint long
bytea base64binary
character string
char string
date string
double precision double
numeric double
real double
time without time zone string
timestamp without time zone string
text string
bit int
bit(n) where n=1 int
bit(n) where n>1 int/base64binary
integer double
smallint int