SOAP broken in Mac OS X 10.2.x? (Google Web API)
SOAP broken in Mac OS X 10.2.x? (Google Web API)
- Subject: SOAP broken in Mac OS X 10.2.x? (Google Web API)
- From: Terje Bless <email@hidden>
- Date: Fri, 21 Feb 2003 12:43:50 +0100
Futzing with AppleScript SOAP and the Google WebAPI I ran into some trouble
and searching reveals that I'm not the only one. Apparently something
changed in between Mac OS X 10.1 and 10.2 that makes it choke on the Google
WebAPI.
This script...
-- cut here
property SOAP_app : "
http://api.google.com/search/beta2"
property SOAP_key : "<deleted>"
property SOAP_action : "urn:GoogleSearchAction"
property SOAP_method : "doGoogleSearch"
property SOAP_namespace : "urn:GoogleSearch"
property SOAP_params : {key:SOAP_key, q:"foo", start:1, maxResults:1 ,
, filter:false, restrict:"", safeSearch:false, lr:"", ie:"", oe:""}
on run
tell application "
http://api.google.com/search/beta2"
set this_result to call soap {method name:SOAP_method ,
, method namespace uri:SOAP_namespace, parameters:SOAP_params ,
, SOAPAction:SOAP_action}
end tell
end run
-- cut here
...gives the error "
http://api.google.com/search/beta2 got an error:
Couldn't create reply".
AFAICT other SOAP implementations talk to the Google SOAP interface just
fine, and AppleScript talks to other SOAP services just fine. According to
Rael Dornfest[0] this broke somewhere between 10.1.5 and 10.2.
Malcolm Fitzgerald posted about it here[1] on Tuesday but I don't see any
replies either way. Is nobody else trying to use AppleScript's SOAP with
Google or is it working for everybody else?
Anyone have any ideas what's going on? I can't even tell whether that error
message is from Google or AppleScript (though I suspect the latter). Rael
speculates that it might be due to Google returning results as UTF-8
regardless of what you set in the "oe" parameter. Could that be it? Or
could it be that Google uses a Byte-Order Mark in it's UTF-8 and that
whatever XML Parser AppleScript uses under the hood chokes on it (which has
been a problem with other XML Parsers in the past)?
[0] - <
http://www.raelity.org/archives/computers/operating_systems/apple/
mac_os_x/programming/applescript>
[1] - <
http://lists.apple.com/mhonarc/applescript-users/msg34574.html>
--
Now Playing "Hells Bells" by "AC/DC"", from the album "Back In Black".
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.