PHP 5 SOAP Extension -- Doesn't work
Code
<?php
$request = array('Request' => array(
'AppID' => 'MSN_SEARCH_API_KEY',
'Query' => 'Seinfeld',
'CultureInfo' => 'en-US',
'SafeSearch' => 'Strict',
'Flags' => '',
'Location' => '',
'Requests' => array(
'SourceRequest' => array(
'Source' => 'Web',
'Offset' => 0,
'Count' => 50,
'ResultFields' => 'All'))));
$soapClient = new SoapClient("http://soap.search.msn.com/webservices.asmx?wsdl");
$result = $soapClient->Search($request);
print_r($result);
?>
XML actually passed over network
Results
stdClass Object
(
[Response] => stdClass Object
(
[Responses] => stdClass Object
(
[SourceResponse] => Array
(
[0] => stdClass Object
(
[Source] => Web
[Offset] => 0
[Total] => 1328124
[Results] => stdClass Object
(
[Result] => Array
(
[0] => stdClass Object
(
[Title] => "Seinfeld" (1990)
[Description] => Seinfeld - Cast, Crew, Reviews, Plot Summary, Comments, Discussion, Taglines, Trailers, Posters, Photos, Showtimes, Link to Official Site, Fan Sites Home | Top Movies | Photos | Independent Film | ...
[Url] => http://www.imdb.com/title/tt0098904/
)
[1] => stdClass Object
(
[Title] => Seinfeld Episode Guide - Seinfeld Season Episodes - TV.com
[Description] => Seinfeld Episode Guide, TV.com is your reference guide to Seinfeld. Seinfeld Season Episode information, guide, photos, videos, cast and crew information, forums, reviews and more. GameSpot | GameFAQs ...
[Url] => http://www.tv.com/seinfeld/show/112/episode_guide.html
)
[2] => stdClass Object
(
[Title] => Seinfeld Blog - Seinfeld DVD For Sale Now
[Description] => ... Seinfeld site about nothing. All 180 Seinfeld videos (full episodes), 180 scripts, over 100 Seinfeld images, 90 Seinfeld video clips, quotes, dvd, links, blog, Seinfeld episode guide,and more! ...
[Url] => http://www.stanthecaddy.com/
)
[3] => stdClass Object
(
[Title] => Seinfeld Scripts? - Seinfeld Forum
[Description] => ... of the proceeds from this site help sponsor Hama from Niger. Click here for more information. Seinfeld Scripts? Does anyone know if I can use this site's scripts on my own website.......I don't seem to ...
[Url] => http://www.stanthecaddy.com/seinfeld-scripts.html
)
[4] => stdClass Object
(
[Title] => Seinfeld (a Titles and Air Dates Guide)
[Description] => ... guide listing the title and air date for each episode of the TV series Seinfeld. Seinfeld a Titles & Air Dates Guide by Dennis Kytasaari Last updated: Tue, 13 Sep 2005 05:00 aired from: Jul 1989 to: May 1998 ...
[Url] => http://epguides.com/Seinfeld/
)
[5] => stdClass Object
(
[Title] => Seinfeld-Fan.net - downloads, dvds, guides and more
[Description] => ... Jerry and the gang can relive pleasant memories with our many exciting features at this vast Seinfeld archive. username: @seinfeld-fan.net password: :: Home > Episode Guide > ...
[Url] => http://www.seinfeld-fan.net/
)
[6] => stdClass Object
(
[Title] => Seinfeld Quotes
[Description] => Hilarious and memorable lines culled from 138 episodes of the classic TV show Seinfeld. Enjoy! Seinfeld Posters at AllPosters.com The Visa The ...
[Url] => http://www.pkmeco.com/seinfeld/
)
[7] => stdClass Object
(
[Title] => Seinfeld - Master of Madison Avenue's domain. By Bryan Curtis
[Description] => ... or sign up to get all of Slate's free daily podcasts . When the creators of Seinfeld took a stand against the saccharine rituals of the sitcom—"no hugging, no learning"—one hoped the warranty would ...
[Url] => http://www.slate.com/id/2125904/
)
)
)
)
[1] => stdClass Object
(
[Source] => Web
[Offset] => 0
[Total] => 0
[Results] => stdClass Object
(
)
)
[2] => stdClass Object
(
[Source] => Web
[Offset] => 0
[Total] => 0
[Results] => stdClass Object
(
)
)
[3] => stdClass Object
(
[Source] => Web
[Offset] => 0
[Total] => 0
[Results] => stdClass Object
(
)
)
)
)
)
)