Fwd: AppleScript SOAP request failures
Fwd: AppleScript SOAP request failures
- Subject: Fwd: AppleScript SOAP request failures
- From: David Barnes <email@hidden>
- Date: Tue, 25 Nov 2003 08:33:29 +1100
Hi everyone,
I received only one reply to my reported problem with SOAP and
AppleScript. That person was able to repeat the fault I see,
and so I am now sure it is a serious bug indeed which basically
stops me using AppleScript to access web services reliably.
They pointed out that the defect was *not* seen when the
script was run with Apple's Event Logger running, but that of
course is not a practical solution or even work-around.
I would *really* appreciate any advice any other people working
with AppleScript and SOAP might have. Whether it is a report
of success, or more hopefully a solution to this predicament.
I've submitted a defect to Apple, but with its state now
fixed at "Open/Analyze" for a couple of weeks it's not clear
to me that anyone is actually looking at it.
Original message follows - thanks for any further help...
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.
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.