Fwd: AppleScript SOAP request failures
Fwd: AppleScript SOAP request failures
- Subject: Fwd: AppleScript SOAP request failures
- From: David Barnes <email@hidden>
- Date: Fri, 14 Nov 2003 14:23:06 +1100
Hi,
In developing a small client to a SOAP web service using AppleScript,
I have run into a reproducible defect wherein repeated calls to a
service ultimately result in a call that hangs. I've cut down the
Currency Converter (SOAP) example, found in Developer/Examples/
AppleScript Studio, to the following script which should exhibit
the problem on Panther 10.3 and 10.3.1.
Simply load the script in Script Editor, and run it. Each time
it calls the soap service and displays a simple dialog with the
result, hit the OK button (or press Enter) and it repeats.
Eventually you should see a case where the dialog fails to come
up. After a minute or so, use Cmd-period, and you'll see that
the SOAP call was "interrupted". Logs on the service provider
show that no message was ever received at the web service
end.
I hope someone else has seen this before and knows a solution
or at least a workaround.
Many thanks - David.
set fromCountry to "Australia"
set forCountry to "USA"
repeat 20 times
set the theResu to convert(fromCountry, forCountry)
display dialog theResu giving up after 4
end repeat
-- SOAP convert handler -----------------------------------------
on convert(fromC, forC)
tell application "
http://services.xmethods.net:80/soap"
-- Call the "getRate" method of the soap service returning the current rate
return call soap {method name:"getRate", method namespace uri:"urn:xmethods-CurrencyExchange", parameters:{country1:fromC, country2:forC}, SOAPAction:""}
end tell
end convert
_______________________________________________
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.