As stated in the previous section, you can choose whether you want to work with either xml
or json
, just specifiy the content type in the request headers.
Xml: Content-Type: application/xml; charset=utf-8
Json: Content-Type: application/json; charset=utf-8
When you pass entities in xml or json you need to adhere to some standards for passing values of certain data types.
All rules for the xml datatypes are available on http://www.w3.org/TR/xmlschema-1/ or: http://www.w3schools.com/schema/
The dateTime data type is used to specify a date and a time.
The dateTime is specified in the following form "YYYY-MM-DDThh:mm:ss.fff"
where:
Note: All components are required!
E.g. The value for 2 may 2013 at 15:30:59.123 would be: 2013-05-02T15:30:59.123
Note: The UTC dateTime is specified in the following form "YYYY-MM-DDThh:mm:ss.fffZ"
The decimal data type is used to specify a numeric value.
E.g. for 123 456,78 is 123456.78
Note: The maximum number of decimal digits you can specify is 18!
Pass true or false.
The dateTime data type is used to specify a date and a time.
The dateTime is specified in the following form "YYYY-MM-DDThh:mm:ss.fff"
where:
Note: All components are required!
E.g. The value for 2 may 2013 at 15:30:59.123 would be: 2013-05-02T15:30:59.123
Note: The UTC dateTime is specified in the following form "YYYY-MM-DDThh:mm:ss.fffZ"
Use the double precision floating-point format of JavaScript.
Pass true or false.