Web Services and Casting Objects
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.