Set message formats

The format indicates the type of message protocol used for the payload of messages.

  • For inbound messages, the format defines how the payload format is converted to the format used by OSV.

  • For outbound messages, the format defines, in which format the payload is sent.

The following chapters contain an overview on all possible format types.

As of Tricentis Tosca 11.1, setting message formats is no longer required. OSV will detect the message format automatically.

For information on how to specify the format in the service port, see chapter "Create and edit service ports".

OSV offers the following format types:

Auto

Auto allows the system to automatically select the format. The Payload of the message defines the format.

Tricentis recommends selecting format Auto.

None

Select None if a message has no payload.

Json

Select Json to convert messages from and into JSON format.

Xml

Select xml to convert messages from and into the XML format.

To define XML namespaces, set the technical parameter NamespaceURI and define the value of the NamespaceURI parameter for the respective ModuleAttribute.

You can also define explicit namespace prefixes in the Scenario.

Explicit prefixes require that you specify the prefix and the namespace of the message element. You can define it for either the message element or its superordinate message element.

If you modify the value of a prefix declaration, you have to modify the DefaultValue in the Module as well.