- A unit of data exchanged during an operation is called a message.
- A message can be specified by using the message element.
- A message can contain one or more input or output parameters, which are defined in the part child element.
- The syntax for the message element and part child element is:
<message name="MsgName">
<part name="PartName" type="DataType"/>
</message>
where MsgName is the name of the message, PartName is the name of the part, and DataType is the type of data.
In the code example, getBookRequest is the message name that contains a string parameter called Title. The name of the second message is getBookResponse, which contains a parameter called return of the string data type. |