User Tools
Writing /app/www/public/data/meta/development/applications/ebonding/howto/xpaths.meta failed
development:applications:ebonding:howto:xpaths
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| development:applications:ebonding:howto:xpaths [2017/02/01 17:10] – bcoffey | development:applications:ebonding:howto:xpaths [2021/06/25 10:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== XPaths ====== | ||
| + | Author : Brian Coffey | ||
| + | \\ Date : 2017-02-01 | ||
| + | |||
| + | ===== XPath Overview ===== | ||
| + | Xpaths are a powerful method of extracting information from an incoming XML message. | ||
| + | |||
| + | NOTE that tML-Base and tML-TA are replaced in the code as Xpath does not work well with messages like " | ||
| + | |||
| + | The CustomerMessage domain has many CustomerMessageMappings. These CustomerMessageMappings contain customer XPaths which are used to store the location of a particular value within the message e.g premises_access_person is located at ' | ||
| + | |||
| + | One thing to note on the Xpath location, the message name eg. ModifyAttributesRequest is not needed as this is contained in the parent CustomerMessage. | ||
| + | |||
| + | Once this data is obtained using the XPath it is stored in an incomingInformationMap under the Errigal key for that particular CustomerMessageMapping | ||
| + | |||
| + | ===== XPath Examples ===== | ||
| + | === Sample Incoming Message === | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | & | ||
| + | </ | ||
| + | |||
| + | === Sample XPaths === | ||
| + | < | ||
| + | Errigal Key: ticket_id, Customer XPath: TargetObjectName/ | ||
| + | Errigal Key: att_network_id, | ||
| + | Errigal Key: trouble_info, | ||
| + | </ | ||
| + | |||
| + | |||