Default message API

The default message API gives developers quicker integration points to help shorten the integration effort with Symphony for those applications which might have heavy dependence on strings or raw binary data being transferred between the client and service. Developers now do not need to implement onSerialize() and onDeserialize() when sending messages composed of a single text string or a stream of binary data.

Scope


Applicability

Details

Operating system

  • Windows

  • Linux

  • Solaris

Limitations

None


About default message classes

The following message objects give developers instant access to message implementations that are available out of the box. Both of these objects can be used within cross-language applications to implement clients and services in different Symphony API targets.

DefaultTextMessage

Contains basic implementation to encapsulate a string within a message object. This means the developer is able to easily transfer a single text string between client and service by having the application call the setText and getText methods.

DefaultByteArrayMessage

Contains basic implementation to encapsulate a byte array within a message object. This means the developer is able to easily transfer binary data between client and service by having the application call the setByteArray and getByteArray methods.