Simple and primitive Java™ types are serialized to XML to generated Web Service Description Language (WSDL) or Web Application Description Language (WADL) format.
Simple Java types are the finest-grain types from which complex Java types can be expressed. The following table shows how the first-level elements of the primitive Java types are mapped to XML types for serialization into WSDL or WADL format. You retrieve rulesets in WSDL format to present them as hosted transparent decision services. You retrieve rulesets in WADL format to execute them by using Representational State Transfer (REST) APIs.
Java types | XML serialization | JAXB types for deserialization |
---|---|---|
boolean java.lang.Boolean |
xsd:boolean | java.lang.Boolean |
byte |
xsd:int | java.lang.Integer |
char java.lang.Character |
xsd:int | java.lang.Character |
java.util.Date | xsd:dateTime | java.util.Date |
java.math.BigDecimal | xsd:decimal | java.math.BigDecimal |
double java.lang.Double |
xsd:double | java.lang.Double |
float java.lang.Float |
xsd:float | java.lang.Float |
int java.lang.Integer |
xsd:int | java.lang.Integer |
java.math.BigInteger |
xsd:integer | java.math.BigInteger |
long java.lang.Long |
xsd:long | java.lang.Long |
short java.lang.Short |
xsd:short | java.lang.Short |
java.lang.String |
xsd:string | java.lang.String |