• SOAP - A How-to Guide

    SOAP was designed to be a language-agnostic way to transfer objects from one computer to another. When I refer to language I am talking about computer languages. Some people like to program in Java while others might prefer C, C++, or C#. However there are plenty of other languages to choose from including PHP which is really popular on the web.

    There are a lot of good online resources for SOAP. Here's a good an intro to SOAP YouTube video done by a fellow in India. You would do well to watch it a few times and feel free to watch other videos as well.

    If you stuck with me this far then congratulations! You are on your way to becoming a SOAP initiate! Some languages do a really good job at hiding all of the complexities of SOAP and PHP is one of them. Let's look at some PHP examples of how to use SOAP to access our databases here at footballbook.pro.

    I'm going to be using PHP on a Linux command line. You might be using PHP on a Windows box or Mac, it really shouldn't matter. The only thing is that your PHP should be version 5 and should have SOAP enabled.

    Remember, you don't have to use PHP. You can use any computer language that supports SOAP that you are comfortable with. The .NET people out there can use that if they like. I'll use PHP just because I think it makes the examples really simple.

    We'll keep our first lesson fairly simple. The NFL assigns a unique identifier (or ID) to every game. Let's use our SOAP interface to print out the Game ID (gid) for Atlanta's game in Week 7 of the 2010 season. We'll call our first PHP program "lesson1.php" and it looks like this:

    PHP Code:
    <?php
    $oSoapClient 
    = new SoapClient("http://www.footballbook.pro/fbk.wsdl");
     
    $szGid $oSoapClient->getGameId(2010,7,"ATL");
    $aoGameProperties $oSoapClient->getGame($szGid);
     
    $szVis $aoGameProperties['vis'];
    $szHome $aoGameProperties['home'];
     
    echo 
    "The GameID for $szVis vs $szHome is $szGid.\n\n";
    ?>
    The output from the previous program looks like this:

    Code:
    # php lesson1.php
    The GameID for CIN vs ATL is 2010102400.
    In Lesson 2 we'll get some player information. You've heard it before that we're all just a number? Well every player in the NFL is a number. Or at least kind of a number. Just like every game has a unique id, every player has a unique id. Let's find out Tom Brady's player id (pid).

    One of our SOAP messages returns the pid if you give us the team and the jersey number of any player. So if you know anything about football then you know that Brady plays on the Patriots (the team code for the Pat's is "NE") and his jersey number is 12. So we'll feed this info into the getPlayer() message and see what we get back. Save the following in a file called "lesson2.php" and run the program.

    PHP Code:
    <?php
    $oSoapClient 
    = new SoapClient("http://www.footballbook.pro/fbk.wsdl");
     
    $szPid $oSoapClient->getPlayerId('NE',12);
    $aoPlayerProperties $oSoapClient->getPlayer($szPid );
     
    print_r($aoPlayerProperties);
    ?>
    The output from lesson 2 is as follows:
    Code:
    # php lesson2.php
    Array
    (
        [team] => NE
        [number] =>
        [firstname] =>
        [lastname] =>
        [link] => /players/tombrady/profile?id=BRA371156
        [pid] => BRA371156
        [pos] => QB
        [status] => ACT
        [ht] => 76
        [wt] => 225
        [doby] => 1977
        [dobm] => 8
        [dobd] => 3
        [exp] => 11
        [college] => Michigan
        [rating] =>
        [depth] => 1
        [probowler] =>
        [starter] =>
    )
    In Lesson 3 we will get the injury status for Tom Brady in the 2010 Season for Week 13. We'll take Tom Brady's pid and feed it into the getInjury() SOAP message along with the season and week to get Brady's injury status. The code for Lesson 3 is here. Save this to a file called "lesson3.php" and run it.

    PHP Code:
    <?php
    $oSoapClient 
    = new SoapClient("http://www.footballbook.pro/fbk.wsdl");
     
    $szPid $oSoapClient->getPlayerId('NE',12);
    $aoProperties $oSoapClient->getInjury(2010,13,$szPid);
     
    print_r($aoProperties);
    ?>
    The output from lesson 3 is as follows:[CODE]# php lesson2.php

    Code:
    # php lesson3.php
    Array
    (
        [season] => 2010
        [week] => 13
        [pid] => BRA371156
        [team] => NE
        [pos] => QB
        [injury] =>
        [gamestatus] => Probable
        [pracstatus] => Brady (foot/shoulder) was held out of practice Tuesday, Ian Rapoport of the Boston Herald reports.
    )
    For those of you who know how Bill Belichick runs the Patriots it should come as no surprise that Brady is injured. He's been injured for 8 years.

    In the last lesson I'll show you how ridiculously easy SOAP can make getting information. Let's write a short program to get the entire roster for the Indianapolis Colts for Week 5 of the 2010 season.

    Here is the code to get that information. It is a two line program and the code looks like this:

    PHP Code:
    <?php
    $oSoapClient 
    = new SoapClient("http://www.footballbook.pro/fbk.wsdl");
     
    print_r$oSoapClient->getRoster(2010,7,"IND") );
    ?>
    Here is the output for Lesson 4:
    Code:
    # php lesson5.php
    stdClass Object
    (
        [Map] => Array
            (
                [0] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => DAW601476
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RDE
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [1] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => COL397342
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RWR
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [2] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => TAM511848
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => FB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [3] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => JAM216623
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 3
                                    )
     
                            )
     
                    )
     
                [4] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => DEV092404
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RG
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [5] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => MAN515097
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => QB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [6] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => PAI701900
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => QB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [7] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => FRA212200
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => SS
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [8] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => POW641973
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RCB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [9] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => DIE365850
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RT
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [10] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => WAY456953
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RWR
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [11] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => FRE417537
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RDE
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [12] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => POL205447
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RG
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [13] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => JOH126433
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LT
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [14] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => HUG532081
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LDE
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 3
                                    )
     
                            )
     
                    )
     
                [15] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => MAT227229
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LDE
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [16] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => MOA359918
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RDT
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [17] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => HAY034606
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LCB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [18] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => CLA236596
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => TE
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [19] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => BET074391
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => FS
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [20] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => HAR690631
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [21] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => GLE129858
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => MLB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [22] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => MOO000000
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => KR
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [23] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => KIN318064
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => FS
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [24] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => VIN196019
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => K
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [25] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => TYR460013
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LCB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [26] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => SNO367962
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LS
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [27] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => JAM112028
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => KR
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [28] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => TOW776442
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RCB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [29] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => MCA385008
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => H
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [30] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => GAR115573
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LWR
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [31] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => JOH061319
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RDT
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [32] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => MUI375541
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LDT
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [33] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => HAG672748
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => ROLB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [34] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => WHE450744
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LOLB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [35] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => THO210714
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LG
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [36] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => FOS247808
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LDE
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [37] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => SES384265
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => ROLB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [38] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => MCA385008
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => P
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [39] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => RIC215694
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LG
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [40] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => ELD553860
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => FB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [41] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => ADD152616
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [42] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => SAT652599
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => C
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [43] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => LIN669318
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LT
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
                [44] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => ANG284961
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => MLB
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [45] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => POW641973
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => PR
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 1
                                    )
     
                            )
     
                    )
     
                [46] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => MOO457565
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => RWR
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 3
                                    )
     
                            )
     
                    )
     
                [47] => stdClass Object
                    (
                        [item] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [key] => season
                                        [value] => 2010
                                    )
     
                                [1] => stdClass Object
                                    (
                                        [key] => week
                                        [value] => 7
                                    )
     
                                [2] => stdClass Object
                                    (
                                        [key] => team
                                        [value] => IND
                                    )
     
                                [3] => stdClass Object
                                    (
                                        [key] => pid
                                        [value] => WHI084967
                                    )
     
                                [4] => stdClass Object
                                    (
                                        [key] => pos
                                        [value] => LWR
                                    )
     
                                [5] => stdClass Object
                                    (
                                        [key] => depth
                                        [value] => 2
                                    )
     
                            )
     
                    )
     
            )
     
    )
    How simple was that?

    Anyways, that it for now. There will be more lessons in the future but this has been an intro into how to use SOAP. You don't have to screen scrape anymore. If you need NFL stats then you can get them from footballbook.pro!
  • Navigation

    Report
    Make Your Own Injury Reports!
    Report
    iPhone Apps
    Tweet Injury
    Cool Widgets
    Search Injuries
    RSS Feeds
    Web Services
    Join Our Team!
    Video Help