Types

<< Click to Display Table of Contents >>

Navigation:  Connectors > Web Service >

Types

 

The DTS Web Service Connector uses wsdl2java, wadl2java (from Apache CXF) and openapi-generator to generate Java client classes for consuming SOAP and REST web services.

As such, initial type mapping is done by these tools, from the declared specification types to Java object types. The connector then maps the resulting Java base types to DTS types as follows:

Java Type

DTS Type

Object

STRING

String

STRING

XMLGregorianCalendar

DATE_TIME

LocalDate

DATE_TIME

Byte/byte

INT8

Short/short

INT16

Integer/int

INT32

Long/long

INT64

Float/float

FLOAT

Double/double

DOUBLE

Boolean/boolean

BOOLEAN

BigInteger

BIG_INTEGER

BigDecimal

DECIMAL

Duration

STRING

QName

STRING

byte[]

BYTE_VECTOR

 

Any complex object structure that can resolve down to these base types is fully supported.

 

Information-icon_16px While other connectors use DTS's own Java class generation engine, the Web Service Connector relies on CXF and openapi-generator for this task.

This ensures the best possible compliance with increasingly complex and heterogeneous web standards.

 

Information-icon_16px Further reading

XSD (WSDL, WADL) - Java Type Mappings

OpenAPI Data Types

 

Information-icon_16px See also

DTS Types