Tokens and tokenLocators
Monday, April 05, 2010
2:41 PM
Tokens and tokenLocators
A token is a part of a message or variable. 
Read-only. 
Might be the same for different kinds of messages. 
Example: 
<token name="id" informationType="tns:IdentityType"
<description type="documentation">
Identity token
</description>
</token>
...
<tokenLocator tokenName="tns:id" 
informationType="tns:QuoteRequestType" query="/quote/@id">
<description type="documentation">
Identity for QuoteRequestType
</description>
</tokenLocator>

Pasted from <[link]> 
tns: the nameSpace; our namespace for the example. 
tns:id: our token called "id". 
tns:QuoteRequestType: the type of data in which it lives. 
/quote/@id: an XPATH determining the location of the token (in the id attribute of the quote XML element). 