New to applescript and soap
New to applescript and soap
- Subject: New to applescript and soap
- From: Johan Jacobson <email@hidden>
- Date: Sun, 7 Oct 2001 12:45:24 +0200
Hi!
With the ability to use Soap with Applescript I got lot of good ideas of
how to bring great service to my Mac but I need some help to get it
right. I4m obviously doing something wrong :)
This is the description of a Webservice using Soap that I fought I would
use with Applescript:
"Service Name: Send an Email
XMethods ID Number: 97
Service Owner: Shiv Kumar
Contact Email: email@hidden
Service Home Page:
http://delphisoap.com
Description: Email sender service
This is a simple wrapper around SMTP. Using this webservice you can send
an email without attachments to anyone without the need for
configuration.
SOAP Endpoint
URL:
http://webservices.matlus.com/scripts/emailwebservice.dll/soap/IEmailservice
SOAPAction:urn:EmailIPortTypeInft-IEmailService#SendMail
Method Namespace URI: urn:EmailIPortTypeInft-IEmailService
Method Name(s):SendMail
WSDL
URL:
http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IEmailService
Instructions:
method: SendMail
parameters:
ToAddress: string (The address you want to send the email to)
FromAddress: string (Your email address. You can use the format - John
Doe<email@hidden>)
ASubject: string (The subject of the email)
MsgBody: string (The email message)
returns: integer (0 = success anything else is an error)
Server Implementation: Delphi
Sample Client Code:
http://delphisoap.com
Discussion Link: /ubb/Forum3/HTML/000072.html "
And this is my script:
set Till to "email@hidden"
set Fran to "email@hidden"
set Amne to "Subject"
set Medd to "Grattis"
tell application
"
http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IEmailService"
set return to call soap ,
,
,
{method name:"SendMail", method namespace
uri:"urn:EmailIPortTypeInft-IEmailService", parameters:{ToAddress:Till
as string, FromAddress:Fran as string, ASubject:Amne as string,
MsgBody:Medd as string},
SOAPAction:"urn:EmailIPortTypeInft-IEmailService#SendMail"} ,
end tell
The thing is that i get a Parameter error. I d/l AEXMLTutor to se if I
could get a hint of whar is going wrong. The only thing I could se was
that the "Parameters" where sent with for example asubject instead of
ASubject.
I really would appriciate any help.
Regards!
Johan