10.? broke my SOAP
10.? broke my SOAP
- Subject: 10.? broke my SOAP
- From: Rael Dornfest <email@hidden>
- Date: Tue, 12 Nov 2002 01:41:59 -0800
Howdy,
I've recently had one of those hair-yanking "but it worked a few weeks
ago" experiences with AppleScript SOAP and the Google Web API[1].
--
on google_Search(in_maxResults, in_start, in_filter, in_q, in_restrict,
in_safeSearch)
set in_lr to "" -- language restrict
set in_ie to "utf8" -- input encoding
set in_oe to "utf8" -- output encoding
set in_key to "insert key here" -- my google key
tell application "
http://api.google.com/search/beta2"
set mn to "doGoogleSearch"
set sa to "urn:GoogleSearchAction"
set mns to "urn:GoogleSearch"
set params to {}
set params to {oe:in_oe} & params
set params to {ie:in_ie} & params
set params to {lr:in_lr} & params
set params to {|safeSearch|:in_safeSearch} & params
set params to {restrict:in_restrict} & params
set params to {filter:in_filter} & params
set params to {|maxResults|:in_maxResults} & params
set params to {start:in_start} & params
set params to {q:in_q} & params
set params to {|key|:in_key} & params
return call soap {method name:mn, parameters:params, SOAPAction:sa,
method namespace uri:mns}
end tell
end google_Search
google_Search(10, 0, false, "applescript", "", false)
--
While this runs perfectly under OS X 10.1.5, it consistently dies with
"
http://api.google.com/search/beta2 got an error: Couldn't create
reply" under 10.2.x.
Now I know it's not the SOAP interface in general as other Web services
(e.g. weather report) work as expected.
Any idea what happened?
Any way to get AppleScript to cough up the outgoing SOAP request or
incoming SOAP response?
Any other ideas for debugging?
Thanks,
Rael
[1]
http://api.google.com/
_______________________________________________
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.