• 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
Web Services and Casting Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Web Services and Casting Objects


  • Subject: Web Services and Casting Objects
  • From: Davindra Singh <email@hidden>
  • Date: Mon, 07 Jul 2003 11:02:52 -0700

Hi guys,

I've been reading up on the earlier discussions about castings java.lang.Objects to NSArrays and the such.  I've been successful with invoking a webservice and having it return an NSArray of objects from a server.  However these objects aren't that useful to me either.   What I'm trying to do is to basically grab a list of authors from a the server, and have them populate a WORepeater.

Typically when you do this in a normal Web Objects Application you have an NSArray of your datatype (in this case Authors), and then bind that NSArray to the WORepeaters list property.  Then you bind a single object (ie Author) to the WORepeaters item property, and then access the single item to get the parameters (ie Author.firstname).

However when I do this with a Web Service I get back an NSArray filled with com.webobjects.webservices.support.xml.WOStringKeyMap objects.  I've tried to cast these objects (including the array itself) back to an Author, but that didn't work.

Any help and/or examples would be much appreciated.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Hi Everyone Please help
  • Next by Date: Cascading Style Sheets
  • Previous by thread: Re: Hi Everyone Please help
  • Next by thread: Cascading Style Sheets
  • Index(es):
    • Date
    • Thread