• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XML-RPC structs and case-sensitivity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML-RPC structs and case-sensitivity


  • Subject: Re: XML-RPC structs and case-sensitivity
  • From: Paul Berkowitz <email@hidden>
  • Date: Wed, 21 Jul 2004 13:06:04 -0700

On 7/21/04 12:31 PM, "Matt Deatherage" <email@hidden> wrote:

> It's subtle, but important: AppleScript or WebServicesCore has lowercased the
> name of every member of the struct. The XML-RPC spec says nothing about
> ignoring case, so this particular application (which I cannot modify) is
> case-sensitive, and fails. I have the member names with the correct case in
> my record, but AppleScript won't emit them that way. It correctly preserves
> the case of the method name, but that's a string and I expect that.

I discovered the same problem with AppleScript records bridged to Cocoa
dictionaries by 'call method' in AppleScript Studio. I imagine it's
connected with the fact that in AppleScript record labels (a type of
variable, not string) are case-oblivious for meaning: they happen to
preserver the case format of the first occurrence of compiling this variable
. I guess other languages (or the AppleScript decompiler taking an easy way
out) doesn't really know which case was typed and the value is always the
lower-case version.

I'm pretty sure that I saw something about SML-RPC and SOAP calls where you
need to put the labels into |pipes| for some other reason. It might work
here too - it's worth a try. See what happens if you try:

set myStruct to {|Param1|:56, |Param2A|:"my string here",
|Param3b|:true}



--
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.


  • Prev by Date: Re: Strange path
  • Next by Date: Re: XML-RPC structs and case-sensitivity
  • Previous by thread: XML-RPC structs and case-sensitivity
  • Next by thread: Re: XML-RPC structs and case-sensitivity
  • Index(es):
    • Date
    • Thread