More SOAP Related issues

I’ve pretty much given up on this project (Going to be doing the AJAX calls for Google Search… definitely going to be posting another happy post later…). Thinking through Marc’s Question/Comment of why I didn’t use the SOAP libraries that PHP came with, I decided to change a single line in the PHP code to make things work.

From:

$soapclient = new Soap_Client('http://api.google.com/search/beta2');

To:

$soapclient = new SoapClient('http://api.google.com/search/beta2');

Notice the difference? I guess there really wasn’t a reason to even look at NuSOAP, but I really didn’t know too much SOAP back then, and didn’t even know that there was a native PHP library for it.

Now the problem is this error that I keep getting, regardless of using the core PHP implementation of SOAP or NuSOAP:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn’t find in ‘http://api.google.com/search/beta2′ in /Users/jk/Sites/google/index.php:32 Stack trace: #0 /Users/jk/Sites/google/index.php(32): SoapClient->SoapClient(‘http://api.goog…’) #1 {main} thrown in /Users/jk/Sites/google/index.php on line 32

If anyone has any insight on what the heck this is talking about, do leave me some love. From this point on, if this problem does get fixed, it’ll just purely be for fun, and not for an actual project. I mean, the Google API Key that I have for this project isn’t even mine anyway: It’s from a co-worker.

Comments are closed.