TBS Apps API

<back to all web services

Fav4Request

Fav4Request Parameters:
NameParameterData TypeRequiredDescription
EventTypeFilterquerybyteNo1-Thoroughbred,2-Harness,4-Greyhounds. Default is 1
Fav4Response Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<Fav4Outcome>No
Fav4Outcome Parameters:
NameParameterData TypeRequiredDescription
EventIdformintNo
EventTypeIdformintNo
MasterEventIdformintNo
VenueformstringNo
RaceNumberformintNo
BettingCloseTimeUtcformDateTimeNo
BettingCloseTimeformstringNo
TimeToJumpformintNo
FixedMarketIdformlongNo
PriceformdecimalNo
BoostPriceformdecimalNo
OutcomeIdformintNo
OutcomeNameformstringNo
Jockey_DriverformstringNo
TrainerformstringNo
ShortFormformstringNo
MasterCategoryNameformstringNo

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

HTTP + SOAP12

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

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

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

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

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

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

<Fav4Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions">
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/TBS.Frontend.Messaging.DataContracts">
    <d2p1:Fav4Outcome>
      <d2p1:BettingCloseTimeUtc>0001-01-01T00:00:00</d2p1:BettingCloseTimeUtc>
      <d2p1:BoostPrice>0</d2p1:BoostPrice>
      <d2p1:EventId>0</d2p1:EventId>
      <d2p1:EventTypeId>0</d2p1:EventTypeId>
      <d2p1:FixedMarketId>0</d2p1:FixedMarketId>
      <d2p1:Jockey_Driver>String</d2p1:Jockey_Driver>
      <d2p1:MasterCategoryName>String</d2p1:MasterCategoryName>
      <d2p1:MasterEventId>0</d2p1:MasterEventId>
      <d2p1:OutcomeId>0</d2p1:OutcomeId>
      <d2p1:OutcomeName>String</d2p1:OutcomeName>
      <d2p1:Price>0</d2p1:Price>
      <d2p1:RaceNumber>0</d2p1:RaceNumber>
      <d2p1:ShortForm>String</d2p1:ShortForm>
      <d2p1:Trainer>String</d2p1:Trainer>
      <d2p1:Venue>String</d2p1:Venue>
    </d2p1:Fav4Outcome>
  </Items>
</Fav4Response>

    </soap12:Body>
</soap12:Envelope>