property SOAP_Endpoint_URL : "http://www.flickr.com/services/soap/"
property SOAP_app : "soap"
property method_name : "FlickrRequest"
property method_namespace_URI : "urn:flickr"
property SOAP_action : ""
-- CREATE THE PARAMETER RECORD
set the method_parameters to {api_key:"00f1b544c23477ad342f738805c13f26", method:"flickr.test.echo", format:"soap2", dummy:"pladijs"}
-- CALL THE SOAP SUB-ROUTINE
try
using terms from application "http://www.apple.com/placebo"
tell application SOAP_Endpoint_URL
set this_result to call soap ¬
{method name:method_name ¬
, method namespace uri:method_namespace_URI ¬
, parameters:method_parameters ¬
, SOAPAction:SOAP_action}
end tell
end using terms from
return this_result
on error error_message number error_number
if the error_number is -916 then ¬
set the error_message to "The script was unable to establish a connection to the Internet."
display dialog "An error occurred." & return & return & error_message buttons {"Cancel"} default button 1
end try
The routine constantlly goes into the error part, and the error_message is: The variable this_result is not defined
I had the results going through a proxy, and both request and answer are OK
Model: iMac
AppleScript: 1.10.7
Browser: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.4) Gecko/20060613 Camino/1.0.2
Operating System: Mac OS X (10.4)