jaxb feature

JAXB Feature

Version: 17.07

Supported Since: 17.07

JAXB Feature

JAXB Feature can be used to convert XML payloads into JAXB objects and vice versa. This feature has several APIs which provide a range of options for the user according to their need.

APIs Java Docs

serializeAsSOAP11

Parameters
Object jaxb

the JAXB Object to serialize

String rootElement

root element local name for serialization

String uri

namespace uri for the root element

XMessage msg

the current message to write the Object into as a SOAP 1.1 stream

This API will serialize a JAXB Object as a SOAP 1.1 Stream message

serializeAsSOAP11

Parameters
Object jaxb

the JAXB Object to serialize

XMessage msg

the current message to write the Object into as a SOAP 1.1 stream

This API will serialize a JAXB Object as a SOAP 1.1 Stream message

serializeAsSOAP12

Parameters
Object jaxb

the JAXB Object to serialize

String rootElement

root element local name for serialization

String uri

namespace uri for the root element

XMessage msg

the current message to write the Object into as a SOAP 1.1 stream

This API will serialize a JAXB Object as a SOAP 1.2 Stream message

serializeAsSOAP12

Parameters
Object jaxb

the JAXB Object to serialize

XMessage msg

the current message to write the Object into as a SOAP 1.1 stream

This API will serialize a JAXB Object as a SOAP 1.2 Stream message

serializeAsXML

Parameters
Object jaxb

the JAXB Object to serialize

String rootElement

root element local name for serialization

String uri

namespace uri for the root element

XMessage msg

the current message to write the Object into as a XML stream

This API will serialize a JAXB Object as a XML Stream message

serializeAsXML

Parameters
Object jaxb

the JAXB Object to serialize

XMessage msg

the current message to write the Object into as a XML stream

This API will serialize a JAXB Object as a XML Stream message

serializeAsXML

Parameters
Object jaxb

the JAXB Object to serialize

OutputStream outStream

the OutputStream to write the Object into as a XML stream

This API will serialize a JAXB Object as a XML Stream message into an OutputStream

serializeAsXML

Parameters
Object jaxb

the JAXB Object to serialize

String rootElement

root element local name for serialization

String uri

namespace uri for the root element

OutputStream outStream

the OutputStream to write the Object into as a XML stream

This API will serialize a JAXB Object as a XML Stream message into an OutputStream

convertXMLToJAXBObject

Parameters

String contextPath::a list of colon separated java package names that contain schema-derived classes and/or fully qualified JAXB-annotated classes Class<? extends T> clazz:: the JAXB class to convert the payload into XMessage msg:: the current message to read the payload from

Returns
<T> T

an Object of the specified class if the payload was successfully converted

This API will convert a XML payload into a JAXB Object. This does NOT modify the current message.

convertXMLToJAXBObject

Parameters
Class<? extends T> clazz

the JAXB class to convert the payload into

XMessage msg

the current message to read the payload from

Returns
<T> T

an Object of the specified class if the payload was successfully converted

This API will convert a XML payload into a JAXB Object. This does NOT modify the current message.

convertXMLToJAXBObject

Parameters
Class<? extends T> clazz

the JAXB class to convert the payload into

InputStream inStream

the InputStream to read from

Returns
<T> T

an Object of the specified class if the payload was successfully converted

This API will convert a XML stream from an InputStream to a JAXB object

convertXMLToJAXBObject

Parameters
String contextPath

a list of colon separated java package names that contain schema-derived classes and/or fully qualified JAXB-annotated classes

Class<? extends T> clazz

the JAXB class to convert the payload into

InputStream inStream

the InputStream to read from

Returns
<T> T

an Object of the specified class if the payload was successfully converted

This API will convert a XML stream from an InputStream to a JAXB object

In this topic
In this topic
Contact Us