asrpro/OpenTrack.NET — pull request #12 by BFrench81 (2014-04-21 21:07:26+00:00)
Title: Change Error Check to Look Deeper in XML

Not all failure responses follow the same pattern. Some times the Error element is nested deeper in the response than where we were checking. So I changed the search for an Error element to use Linq to Xml which makes it easier to search all descendant nodes. Below is an example xml message we received after trying to add an RO that prompted the change.

http://www.starstandards.org/webservices/2005/10/transport/operations/ProcessMessageResponse
urn:uuid:1b6a2f7f-d540-42c4-a147-cda61c2e67ad
urn:uuid:0678502a-480d-4cef-a2e7-abd076f5680d
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous

2014-04-21T19:49:27Z
2014-04-21T19:54:27Z

Repair Order failed to add.

RO29
OdometerIn must be greater than last recorded vehicle mileage.