cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Data type and message type

Former Member
0 Likes
2,043

Hi Every one, may be this is a basic question.

What is the technical difference between Datatype and messagetype? What are the different purposes served by them.

-Naveen.

View Entire Topic
former_member91687
Active Contributor
0 Likes

Hi naveen,

The data type is basically an XSD representation, it describes the valid payload of messsage, it is an abstract description of a structure that you can assign to elements in a XML schema definition. A message type that references a data type determines the name of the root element of a message and it can reference only one data type and determines the content of the message to be transferred.

A data type is not sufficient to describe the instance of a message. In XML schema, data types are defined as abstract types that are not yet fixed to an element. You can only describe an instance of a message when you have specified a data type as an element type. Therefore, a message type defines the root element of a message. And hence you would require to have a messsage type.

However more than one message interface can use the same message type and when you do message mapping you can map messages by directly referencing the message types.

Has this cleared your doubts.

Regards,

Chandra