This project is read-only.
1
Vote

Payload with OData error embedded fails the payload type validation

description

on the validation service page
input http://transit.cloudapp.net/DevTransitODataService.svc/Arrivals('10A%7C0%7C4000002%7C6000800%7C0')
hit validate button

Get failed result: Uri MUST point to a valid entry, feed, service document or metadata document

The payload is
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<entry xml:base="http://transit.cloudapp.net/DevTransitODataService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
<id>http://transit.cloudapp.net/DevTransitODataService.svc/Arrivals('10A%7C0%7C4000002%7C6000800%7C0')</id>
<title type="text">10A</title>
<summary type="text">10A Bus to NORTH from 4000002 bus stop at 4/11/2011 8:00:36 PM</summary>
<updated>2011-04-12T00:56:39Z</updated>
<author>
<name />
</author>
<contributor>
<name>WMATA</name>
</contributor>
<link rel="edit" title="Arrival" href="Arrivals('10A%7C0%7C4000002%7C6000800%7C0')" />
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Vehicle" type="application/atom+xml;type=entry" title="Vehicle" href="Arrivals
('10A%7C0%7C4000002%7C6000800%7C0')/Vehicle" />
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Stop" type="application/atom+xml;type=entry" title="Stop" href="Arrivals('10A
%7C0%7C4000002%7C6000800%7C0')/Stop" />
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/DestinationStop" type="application/atom+xml;type=entry" title="DestinationStop"
href="Arrivals('10A%7C0%7C4000002%7C6000800%7C0')/DestinationStop" />
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Route" type="application/atom+xml;type=entry" title="Route" href="Arrivals
('10A%7C0%7C4000002%7C6000800%7C0')/Route" />
<category term="Ebt.Transit.Backend.Services.DataContracts.Arrival" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<content type="application/xml">
<m:properties>
  <d:VehicleID>10A|0|4000002|6000800|0</d:VehicleID>
  <d:CarCount m:type="Edm.Int32">0</d:CarCount>
  <d:DestinationStopId>6000800</d:DestinationStopId>
  <d:DestinationName>PENTAGON</d:DestinationName>
  <d:DestinationStopName>PENTAGON STATION + BUS BAY U13</d:DestinationStopName>
  <d:RouteId>10A</d:RouteId>
  <d:RouteName>10A</d:RouteName>
  <d:RouteType>Bus</d:RouteType>
  <d:AgencyAbbreviation>WMATA</d:AgencyAbbreviation>
  <d:ArrivalTime m:type="Edm.DateTime">2011-04-12T00:00:36Z</d:ArrivalTime>
  <d:ScheduledTime m:type="Edm.DateTime">2011-04-12T00:00:36Z</d:ScheduledTime>
  <d:Frequency m:type="Edm.Double">0</d:Frequency>
  <d:ConfidenceLevel m:null="true" />
  <d:Status>Unknown</d:Status>
  <d:StopId>4000002</d:StopId>
  <d:StopName>S WASHINGTON ST + CHURCH ST</d:StopName>
  <d:DirectionId m:type="Edm.Int32">0</d:DirectionId>
  <d:DirectionText>NORTH</d:DirectionText>
  <d:IsRealTime m:type="Edm.Boolean">false</d:IsRealTime>
</m:properties>
</content>
</entry>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code></code>
<message xml:lang="en-US">A single resource was expected for the result, but multiple resources were found.</message>
</error>

comments