Troubleshooting XML
Version 3 (Bryan Heath, 06/08/2012 03:36 pm)
| 1 | 1 | h1. Troubleshooting Valid XML |
|
|---|---|---|---|
| 2 | 1 | ||
| 3 | 1 | Most of the results, especially during testing will be returned to you as XML. |
|
| 4 | 2 | Bryan Heath | The XML view will very from browser to browser. |
| 5 | 1 | ||
| 6 | 3 | Bryan Heath | Example of a valid user result: |
| 7 | 3 | Bryan Heath | <pre><loginshare> |
| 8 | 3 | Bryan Heath | <result>1</result> |
| 9 | 3 | Bryan Heath | <user> |
| 10 | 3 | Bryan Heath | <usergroup>IS</usergroup> |
| 11 | 3 | Bryan Heath | <fullname>Test User</fullname> |
| 12 | 3 | Bryan Heath | <designation/> |
| 13 | 3 | Bryan Heath | <emails> |
| 14 | 3 | Bryan Heath | <email>test.user@mysite.com</email> |
| 15 | 3 | Bryan Heath | </emails> |
| 16 | 3 | Bryan Heath | <phone>555-555-5555</phone> |
| 17 | 3 | Bryan Heath | </user> |
| 18 | 3 | Bryan Heath | </loginshare></pre> |
| 19 | 1 | ||
| 20 | 3 | Bryan Heath | Example of a valid staff result as raw XML: |
| 21 | 1 | <pre> |
|
| 22 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
|
| 23 | 1 | <loginshare> |
|
| 24 | 1 | <result>1</result> |
|
| 25 | 2 | Bryan Heath | <staff> |
| 26 | 2 | Bryan Heath | <team>IS</team> |
| 27 | 1 | <firstname>Test</firstname> |
|
| 28 | 1 | <lastname>User</lastname> |
|
| 29 | 2 | Bryan Heath | <designation></designation> |
| 30 | 2 | Bryan Heath | <email>test.user@mysite.com</email> |
| 31 | 2 | Bryan Heath | <mobilenumber>555-555-5555</mobilenumber> |
| 32 | 2 | Bryan Heath | <signature></signature> |
| 33 | 2 | Bryan Heath | </staff> |
| 34 | 2 | Bryan Heath | </loginshare> |
| 35 | 1 | </pre> |
|
| 36 | 2 | Bryan Heath | |
| 37 | 3 | Bryan Heath | Example of an error XML result: |
| 38 | 2 | Bryan Heath | <pre><loginshare> |
| 39 | 3 | Bryan Heath | <result>0</result> |
| 40 | 3 | Bryan Heath | <message>Invalid Username or Password</message> |
| 41 | 2 | Bryan Heath | </loginshare></pre> |