jaxb to soap11 transformer

JAXB to SOAP 1.1 Transformer

Version: 17.07

Supported Since: 17.07

What is an JAXB to SOAP 1.1 Transformer?

An JAXB to SOAP 1.1 Transformer is a processing element which transforms a JAXB object message payload or a variable to a SOAP 1.1 payload.

This transformation is done based on a generic set of rules and hence this processing element is most suitable for simple transformations. For complex transformations based on custom rules, Adroitlogic Data Mapping Tool is recommended.

In order to use this processing element, you must first select the Message Transformation dependency from the processor list when you are creating an empty Ultra project. If you have already created a project, you can add this dependency via Component Registry. From Tools menu, select Ultra Studio → Component Registry and from the Processors list, select the Message Transformation dependency.

xml to jaxb outport

Out Ports

Next

The message will be sent to this outport if the payload transformation is completed successfully

On Exception

The message will be sent to this outport if the processing element failed to transform the payload due to some reason

Parameters

Root Element

Basic

This is an optional element which specifies the root element local name for serialization of the JAXB object.

URI

Basic

This is an optional element which specifies the namespace uri for the root element. If you specify a Root Element, you must specify this parameter.

Obtain Object From Scope Variable

Basic

Whether to obtain the JAXB object from scope variable of the message. By default this parameter is set to false which allows obtaining the JAXB object from the message payload.

Variable Name

Basic

In case where the JAXB object is obtained from scope variable, the variable name of the scope variable respective to the JAXB object.

Sample Use Case

In the following use case, the requirement is to read a message with a JAXB object payload from a XML to JAXB transformer which is connected to a File server, convert the message payload to a SOAP 1.1 and then deliver it to another File server endpoint.

jaxb to soap11 flow
jaxb to soap11 config

In this flow, the processor outport of File ingress connector is connected to the inport of the XML to JAXB Transformer which produces a message with a JAXB object during a successful transformation. The outport of the XML to JAXB Transformer is connected to the inport of the JAXB to SOAP 1.1 Transformer so that the JAXB object message received by the connector is handed over to the transformer next. If the processing element is able to transform the payload from JAXB to SOAP 1.1 successfully, the message with the transformed payload is handed over to the File egress connector, as the "Next" outport of the JAXB to SOAP 1.1 Transformer is connected to.

In the case of transformation failure, a log will be generated and then the message flow will complete in an exceptional state, as the "On Exception" outport of the JAXB to SOAP 1.1 Transformer is connected to a Logger processing element, followed by an Exceptional Flow End element.

In this topic
In this topic
Contact Us