Re: Help! AS/AE is mangling my record item names!
Re: Help! AS/AE is mangling my record item names!
- Subject: Re: Help! AS/AE is mangling my record item names!
- From: Jim Roepcke <email@hidden>
- Date: Wed, 2 Jan 2002 17:23:30 -0800
Is there a way I can see what AS is sending down the wire and what is
being received? When I use |path| I get back {|path|:"/index"}, but I'm
not sure what the server is getting.
And I can't change the item name to "thePath" because it's an
established web service I'm trying to connect to. Obviously
xmlrpc.usefulinc.com's echoStructTest handler is just a debug location
for testing.
Thanks for your help,
Jim
On Wednesday, January 2, 2002, at 05:04 PM, Paul Berkowitz wrote:
On 1/2/02 4:41 PM, "Jim Roepcke" <email@hidden> wrote:
Hello,
I'm having problems with AS messing with the parameters I use in
XML-RPC
calls. I've already filed this as a bug on bugreporter.apple.com, FYI.
set theParameters to {path:"/index"} as record
tell application "http://xmlrpc.usefulinc.com/demo/server.php"
set returnValue to call xmlrpc {method
name:"validator1.echoStructTest", parameters:{theParameters}}
get returnValue
end tell
the returnValue will appear in "the result" window as:
{ftpc:"/index"}
Does anyone know a workaround? How do I get AS to leave path: as
path:?
'path' is an AppleScript keyword. Evidently something "interesting"
happens
to it here . To use a keyword as a regular variable without conflict,
you
can put it inside "pipes" : |path| (made by shift-\). Will that do?
set theParameters to {|path|:"/index"} as record
tell application "http://xmlrpc.usefulinc.com/demo/server.php"
set returnValue to call xmlrpc {method
name:"validator1.echoStructTest",
parameters:{theParameters}}
get returnValue
end tell
--> {|path|:"/index"}
get |path| of returnValue
--> "/index"
Or can't you give the label another name, such as thePath?
--
Paul Berkowitz
_______________________________________________
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.
--
Jim Roepcke
Roepcke Computing Solutions
Personal site:
http://jim.roepcke.com/
Co-Author, Professional WebObjects 5.0 with Java
http://jim.roepcke.com/r/WebObjectsBook