Re: Need rope for SOAP
Re: Need rope for SOAP
- Subject: Re: Need rope for SOAP
- From: Tim Bumgarner <email@hidden>
- Date: Sun, 13 Jan 2002 14:29:46 -0500
Hi Junior,
One reason that you might see a difference when running inside of Studio
versus Script Editor, is that Studio has a much larger set of
terminologies, and therefore more likely to run into a conflict. Looking
at your soap call, you might want to use '|parameters|' instead of
'parameters' as that is a defined term to the 'call method' command.
Tim Bumgarner
AppleScript Studio Engineering
On Saturday, January 12, 2002, at 09:42 PM, Junior Tan wrote:
Hi all. Been having a bummer with SOAP calls:-
Sample 1 (does NOT work in ASStudio, OK in Script Editor)
--------
Set sms to "yadayadaya"
set this_result to call soap {method name:method_name, method namespace
uri:method_namespace_URI, parameters:{FromAddress:"Sol",
ToAddress:"email@hidden", MsgBody:sms as string},
SOAPAction:SOAP_action}
Sample 1a (works OK in BOTH ASStudio and Script Editor, but useless)
---------
set this_result to call soap {method name:method_name, method namespace
uri:method_namespace_URI, parameters:{FromAddress:"Sol",
ToAddress:"email@hidden", MsgBody:"yadayadayada"},
SOAPAction:SOAP_action}
Somehow, having a variable within a parameter record caused Apple Event
Manager to include extra data* in the XML request, that the SOAP server
choked upon.
XML Request:
<?xml.version="1.0".encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
SOAP-
ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:SendMail.xmlns:m="urn:EmailIPortTypeInft-IEmailService">
<fromaddress.xsi:type="xsd:string">Sol</fromaddress>
<toaddress.xsi:type="xsd:string">email@hidden</toaddress>
-- begin extra data*
<!--.###.SOAP:.<msgbody>.Don't.know.how.to.serialize.STXT.-->
<!--.###.SOAP:.STXT.to.TEXT.coercion.-->
-- end extra data
<msgbody.xsi:type="xsd:string">wqdqwddqwdqw</msgbody>
</m:SendMail>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The roadblock, I think, to either variable handling within AppleScript
Studio, specific to SOAP calls and/or an issue with styled text/unicode.
Have tried various coercions. And also tried Jeff Baumann's method but
still
no cigar.
Help!
junior
_______________________________________________
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.