"The Evolution Of XML Protocols"
XML 1-3, p.27
 
Listing 1
<methodCall>
<methodName>NumberToText</methodName>
<params>
<param>
<value><i4>28</i4></value>
</param>
</params>
</methodCall>
The response could be:
<methodResponse>
<params>
<param>
<value><string>twenty-eight</string></value>
</param>
</params>
</methodResponse>
 
Listing 2
<protocol:message xmlns:protocol="http://www.protocols.org/ProtocolSchema">
<protocol:headers>
<trustMe:authInfo xmlns:trustMe="http://www.trustme.com/SecuritySchema">
<trustMe:userName>Joe Engineer</trustMe:userName>
<trustMe:password>test123</trustMe:password>
</trustMe:authInfo>
</protocol:headers>
<protocol:body>
<!--Body goes here-->
</protocol:body>
</protocol:message>