• 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: "John C. Welch" <email@hidden>
  • Date: Wed, 21 Jul 2004 15:09:29 -0500

On 7/21/04 2: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.

It's applescript. If you just dump it to a text file directly, you can see
that the property name is changed to lower case.

This is a pain, but in general, the name of the property is only used as a
referral to get the value of the property, which is preserved.

I'd say change that record to:

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

It's going to make your code a little longer, but that's how records are
meant to be used.

john

--
"Debugging? Klingons do not debug. Our software does not coddle the weak."

- 6th most commonly uttered Klingon programmer phrase
_______________________________________________
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: XML-RPC structs and case-sensitivity
  • Next by Date: Re: XML-RPC structs and case-sensitivity
  • Previous by thread: Re: XML-RPC structs and case-sensitivity
  • Next by thread: Re: XML-RPC structs and case-sensitivity
  • Index(es):
    • Date
    • Thread