Web service

Web services are web based applications that use open, XML-based standards and transport protocol designed to support interoperable machine-to-machine interaction over a network.

SOAP data types and corresponding PHP data types

SOAP provides data types through the use of XML Schema (http://www.w3.org/2001/XMLSchema).
PHP does not have that many data types.

SOAP data typesCorresponding PHP data types
string string
boolean boolean
float float
double float
decimal float
duration integer
dateTime string
time string
date string
gYearMonth integer
gYear integer
gMonthDay integer
gDay integer
gMonth integer
hexBinary string
base64Binary string
normalizedString string
token string
language string
NMTOKEN string
Name string
NCName string
ID string
IDREF string
IDREFS string
ENTITY string
integer integer
nonPositiveInteger integer
negativeInteger integer
long string
int integer
short integer
byte string
nonNegativeInteger integer
unsignedLong integer
unsignedInt integer
unsignedShort integer
unsignedByte integer
positiveInteger integer
anyType string
anyURI string
QName string