TBS Apps API

<back to all web services

Next5RacesRequest

Gets the next 5 races to jump in chronological orderGets the next 5 races to jump in chronological order. Can be filtered by Thoroughbred, Harness or Greyhounds
Next5RacesRequest Parameters:
NameParameterData TypeRequiredDescription
EventTypeFilterbodybyteNo1-Throughbred,2-Harness,4-Greyhounds
CountryFilterbodyintNoAU/NZ and International races filter
Next5RacesResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<Next5Race>No
Next5Race Parameters:
NameParameterData TypeRequiredDescription
RaceformRaceShortcutNo
TimeToJumpformstringNo
EventTypeformstringNo
SecondsToJumpformintNo
AdvertisedStartTimeformstringNo
NextRefreshformintNo
RaceShortcut Parameters:
NameParameterData TypeRequiredDescription
EventIdformintNo
VenueformstringNo
RaceNoformintNo
AdvertisedStartTimeformDateTimeNo
EventTypeformintNo
MasterCategoryNameformstringNo
StateCodeformstringNo
CountryCodeformstringNo
RaceDistanceformint?No
VisionformstringNo
StreamingformStreamInfoNo
StreamInfo Parameters:
NameParameterData TypeRequiredDescription
LiveStreamformStreamItemNo
StreamItem Parameters:
NameParameterData TypeRequiredDescription
ProviderformstringNo
ChannelformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .soap11 suffix or ?format=soap11

HTTP + SOAP11

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /soap11 HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: Next5RacesRequest

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<Next5RacesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions">
  <CountryFilter>0</CountryFilter>
  <EventTypeFilter>0</EventTypeFilter>
</Next5RacesRequest>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<Next5RacesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions">
  <Items>
    <Next5Race>
      <AdvertisedStartTime>String</AdvertisedStartTime>
      <EventType>String</EventType>
      <NextRefresh>0</NextRefresh>
      <Race xmlns:d4p1="http://schemas.datacontract.org/2004/07/TBS.Frontend.Messaging.DataContracts">
        <d4p1:_advertisedStartTime>0001-01-01T00:00:00Z</d4p1:_advertisedStartTime>
        <d4p1:_x003C_CountryCode_x003E_k__BackingField>String</d4p1:_x003C_CountryCode_x003E_k__BackingField>
        <d4p1:_x003C_EventId_x003E_k__BackingField>0</d4p1:_x003C_EventId_x003E_k__BackingField>
        <d4p1:_x003C_EventType_x003E_k__BackingField>0</d4p1:_x003C_EventType_x003E_k__BackingField>
        <d4p1:_x003C_MasterCategoryName_x003E_k__BackingField>String</d4p1:_x003C_MasterCategoryName_x003E_k__BackingField>
        <d4p1:_x003C_RaceDistance_x003E_k__BackingField>0</d4p1:_x003C_RaceDistance_x003E_k__BackingField>
        <d4p1:_x003C_RaceNo_x003E_k__BackingField>0</d4p1:_x003C_RaceNo_x003E_k__BackingField>
        <d4p1:_x003C_StateCode_x003E_k__BackingField>String</d4p1:_x003C_StateCode_x003E_k__BackingField>
        <d4p1:_x003C_Streaming_x003E_k__BackingField>
          <d4p1:LiveStream>
            <d4p1:Channel>String</d4p1:Channel>
            <d4p1:Provider>String</d4p1:Provider>
          </d4p1:LiveStream>
        </d4p1:_x003C_Streaming_x003E_k__BackingField>
        <d4p1:_x003C_Venue_x003E_k__BackingField>String</d4p1:_x003C_Venue_x003E_k__BackingField>
        <d4p1:_x003C_Vision_x003E_k__BackingField>String</d4p1:_x003C_Vision_x003E_k__BackingField>
      </Race>
      <SecondsToJump>0</SecondsToJump>
      <TimeToJump>String</TimeToJump>
    </Next5Race>
  </Items>
</Next5RacesResponse>

    </soap:Body>
</soap:Envelope>