You need to set display_errors (or log_errors) to On and error_reporting to E_ALL. Once you do that, you'll see that 1 notice and 2 warnings are being generated. (As for the warnings, visit the initially requested URL in your browser and note that the web service is trying to tell you something important.)
EDIT: Also, when posting PHP code, please use the board's [noparse]
..
[/noparse] bbcode tags as they make your code much easier to read and analyze.