Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Add quote of the day to Mail messages via web services' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Add quote of the day to Mail messages via web services
Authored by: S Barman on Aug 18, '06 08:25:51PM
I could not get this to work. I then tried to cut it back to just display a dialog box and it continues not to work. Considering my knowlege of SOAP/XML programming is weak, I do not understand what is wrong.

Here's my version of the script:


try
	tell application "http://webservices.codingtheweb.com/bin/qotd"
		set qotd to call soap {method name:"getQuote", method namespace uri:"urn:xmethods-qotd", SOAPAction:"urn:xmethods-qotd#getQuote"}
		display dialog qotd
	end tell
on error theErrorMessage
	display alert theErrorMessage
end try
Any suggestions?

[ Reply to This | # ]
Add quote of the day to Mail messages via web services
Authored by: roncross@cox.net on Aug 19, '06 01:16:07AM

The script is pretty simple so I am not seeing why it wouldn't work for you.

If you take out the
on error theErrorMessage
display alert theErrorMessage
and you run it, what are you getting in the Event Log? I ran your script without the error part and the event log is identical between your script and mine which means the quote is being returned.

Some other things to take into consideration. I am running Tiger version 10.4.7, are you running an earlier version? I am also running script editor v2.1.1 (81) AppleScript 1.10.7. Are you running an ealier version?

Do you have any Firewall that is preventing communication between your computer and SOAP server? Look in system preferences under Sharing and if there is a firewall turned on. For debugging turn off the firewall and try again.

thx
RLC



---
rlc



[ Reply to This | # ]