SOAP (is very dirty)
SOAP (is very dirty)
- Subject: SOAP (is very dirty)
- From: "Gary (Lists)" <email@hidden>
- Date: Fri, 28 Apr 2006 18:57:04 -0400
I have worked on this for a good while, and I've read so much esoteric
documentation that my eyes are bleeding. (But some was interesting.)
I know that Matt N. has said that SOAP in AS is wonky, but he did provide a
working example (Quote of the Day, which I still use) in his book.
So, maybe I'm barking up the wrong tree [*] or just flat-out unable to
comprehend what I should be doing.
I am trying to utilize the service definition found here:
<http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl>
...with AppleScript that now looks like this:
-- *****
set c1 to "us"
set c2 to "fr"
-- xmethods
tell application "http://services.xmethods.net:80/soap"
set returnValue to call soap {method name:"getRateRequest", method
namespace uri:¬
"http://www.xmethods.net/sd/CurrencyExchangeService.wsdl",
parameters:{country1:c1, country2:c2}, SOAPAction:""}
end tell
-- *****
I have tried a few alternatives, based on Apple's examples found at:
<http://developer.apple.com/documentation/AppleScript/Conceptual/soapXMLRPC/
chapter3/chapter_3_section_2.html>
and
<http://developer.apple.com/documentation/AppleScript/Conceptual/soapXMLRPC/
chapter3/chapter_3_section_3.html>
and more.
I have tried this version of the script as well, which has a different
'method namespace uri':
-- *****
tell application "http://services.xmethods.net:80/soap"
set returnValue to call soap {method name:"getRate", method namespace
uri:¬
"urn:xmethods-CurrencyExchange", parameters:{country1:c1,
country2:c2}, SOAPAction:""}
end tell
-- *****
I may very well be "reading" the service definition XML incorrectly (I mean,
with my eyes and brain).
I either get an error 'Transport Error' or I get an 'AppleEvent timed out'
or I get a Perl error from the server.
Now, maybe the server is down, broken, whatever, but...
...am I on the right track, at all?
(I don't care which service I use, either, if someone has a reliable service
where I could experiment with retrieving currency values.)
I believe I've done my homework on the reading and am just up against the
wall of my own skill level with this kind of thing (not the first time), and
so I'm willing to have URL's or reference or RTFM hints rather than any
direct answer.
Thanks for any feedback.
--
Gary
[*] Emmanuel, another 'pooch' reference for you. Hunting dogs bark up the
tree when they've "treed" their furry prey. But, sometimes they get it
wrong, and hence... "Barking up the wrong tree."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden