I have written a script using SOAP to get info from Amazon Web Services. Unfortunately, I can’t figure out how to extract the data from the resulting record. The script is
using terms from application "http://www.apple.com"
tell application ("http://soap.amazon.com/onca/soap" as string)
set soapresult to call soap {method name:"KeywordSearchRequest", method namespace uri:"urn:PI/DevCentral/SoapService", parameters:{|KeywordSearchRequest|:{keyword:"dog", mode:"dvd", tag:"webservices-20", devTag:"DU7TKVGV6U805", page:1, type:"heavy"}}, SOAPAction:"urn:PI/DevCentral/SoapService"}
end tell
end using terms from
The SOAP result comes in the form of a record
{|Details|:{{|Catalog|:“DVD”,|Sales Rank|: etc
I know how to get to the first level by using "set x to |Details| of ". What I don’t know is how to get info out of the part starting with “{{”. Thanks. :?: :?