Teams Service

Description

The Teams service is used to retrieve a list of teams and their associated IDs for use in other DBS Web service queries.

Available Queries

  • All teams
  • Teams for a given league

WSDL Location

http://feeds.donbest.com/webservices/teams.wsdl

Request

Request Format

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:team="http://donbest.com/schemas/teams">
   <soapenv:Header>
      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken wsu:Id="UsernameToken-1" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:Username>myUsername</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">MyPassword</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
   </soapenv:Header>
<soapenv:Body>
      <team:TeamsRequest>
         <!--Optional:-->
         <team:LeagueId>?</team:LeagueId>
      </team:TeamsRequest>
   </soapenv:Body>
</soapenv:Envelope>

Request Parameters

  • the empty request - returns all teams for all leagues.
  • LeagueId - returns a list of all teams belonging to the given league.

Response

Response Format

<team:TeamsResponse time="2009-11-24T22:55:22Z" xmlns:team="http://donbest.com/schemas/teams">
    <team:League id="5" name="mlb">
        <team:Team abbr="AME" fullName="American League" id="2446" name="American League" shortAbbr="AME"/>
        <team:Team abbr="ARI" fullName="Arizona Diamondbacks" id="1299" name="ARI" shortAbbr="ARI"/>
        <team:Team abbr="ATL" fullName="Atlanta Braves" id="1288" name="ATL" shortAbbr="ATL"/>
        <team:Team abbr="BAL" fullName="Baltimore Orioles" id="1277" name="BAL" shortAbbr="BAL"/>
        <team:Team abbr="BOS" fullName="Boston Red Sox" id="1275" name="BOS" shortAbbr="BOS"/>
        <team:Team abbr="CIN" fullName="Cincinnati Reds" id="1295" name="CIN" shortAbbr="CIN"/>
        <team:Team abbr="CLE" fullName="Cleveland Indians" id="1281" name="CLE" shortAbbr="CLE"/>
        <team:Team abbr="COL" fullName="Colorado Rockies" id="1302" name="COL" shortAbbr="COL"/>
        <team:Team abbr="CUB" fullName="Chicago Cubs" id="1297" name="CUB" shortAbbr="CUB"/>
        <team:Team abbr="CWS" fullName="Chicago White Sox" id="1280" name="CWS" shortAbbr="CWS"/>
        <team:Team abbr="DET" fullName="Detroit Tigers" id="1283" name="DET" shortAbbr="DET"/>
        <team:Team abbr="FLA" fullName="Florida Marlins" id="1291" name="FLA" shortAbbr="FLA"/>
        <team:Team abbr="HOU" fullName="Houston Astros" id="1294" name="HOU" shortAbbr="HOU"/>
        <team:Team abbr="KAN" fullName="Kansas City Royals" id="1282" name="KAN" shortAbbr="KAN"/>
        <team:Team abbr="LAA" fullName="Los Angeles Angels" id="1285" name="LAA" shortAbbr="LAA"/>
        <team:Team abbr="LOS" fullName="Los Angeles Dodgers" id="1301" name="LOS" shortAbbr="LOS"/>
        <team:Team abbr="MIL" fullName="Milwaukee Brewers" id="1298" name="MIL" shortAbbr="MIL"/>
        <team:Team abbr="MIN" fullName="Minnesota Twins" id="1279" name="MIN" shortAbbr="MIN"/>
        <team:Team abbr="NAT" fullName="National League" id="2447" name="National League" shortAbbr="NAT"/>
        <team:Team abbr="NYM" fullName="New York Mets" id="1292" name="NYM" shortAbbr="NYM"/>
        <team:Team abbr="NYY" fullName="New York Yankees" id="1274" name="NYY" shortAbbr="NYY"/>
        <team:Team abbr="OAK" fullName="Oakland Athletics" id="1284" name="OAK" shortAbbr="OAK"/>
        <team:Team abbr="PHI" fullName="Philadelphia Phillies" id="1290" name="PHI" shortAbbr="PHI"/>
        <team:Team abbr="PIT" fullName="Pittsburgh Pirates" id="1296" name="PIT" shortAbbr="PIT"/>
        <team:Team abbr="SDG" fullName="San Diego Padres" id="1303" name="SDG" shortAbbr="SDG"/>
        <team:Team abbr="SEA" fullName="Seattle Mariners" id="1286" name="SEA" shortAbbr="SEA"/>
        <team:Team abbr="SFO" fullName="San Francisco Giants" id="1300" name="SFO" shortAbbr="SFO"/>
        <team:Team abbr="STL" fullName="St. Louis Cardinals" id="1293" name="STL" shortAbbr="STL"/>
        <team:Team abbr="TAM" fullName="Tampa Bay Rays" id="1278" name="TAM" shortAbbr="TAM"/>
        <team:Team abbr="TEX" fullName="Texas Rangers" id="1287" name="TEX" shortAbbr="TEX"/>
        <team:Team abbr="TOR" fullName="Toronto Blue Jays" id="1276" name="TOR" shortAbbr="TOR"/>
        <team:Team abbr="WAS" fullName="Washington Nationals" id="1289" name="WAS" shortAbbr="WAS"/>
    </team:League>
</team:TeamsResponse>

In this example, teams belonging to MLB - league 5 - are returned.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License