Re: Web Services
Re: Web Services
- Subject: Re: Web Services
- From: Chuck Hill <email@hidden>
- Date: Thu, 10 Jul 2003 09:44:11 -0700
I expect your problem is one of perception. WebServices are not a WO only,
or even Java only, technology. As such they do not return technology
specific data types. If your service actually did return instances of
EOEnterpriseObject, what would someone using J2EE, or .NET, or whatever do
with them? Where is the J2EE or .NET, or PHP definition of the
EOEnterpriseObject class? I don't know either.
While far from a WebServices guru, I'm pretty sure that what gets returned
is a dictionary, hashmap, or somesuch. You can NOT cast this to an eo
object, nor otherwise coerce it to an eo object in any other reasonable
way. You can probably use this directly with KVC to get at values. As
WOBuilder will not know the key values in advance you will have to type
them in manually. You might need to provide a wrapper method to translate
between Object[] and NSArray for a WORepetition.
Chuck
P.S. WORepetition not WORepeater
At 05:14 AM 10/07/2003 -0400, Michael Singh wrote:
>Considering that I've been working on trying to get Web Services to
>work for over 3 weeks now, and haven't gotten very far at all, I've
>come to the conclusion I am doing this all wrong.
>
>I'm trying to stay away from Direct to Web stuff.
>
>I can create a simple Web Service that returns any simple data type
>(String, int, boolean, etc. etc.) However the second I try to make a
>Web Service return an array of Enterprise Objects I get errors.
>
>I've been successful in getting the Server to send back an array of
>Enterprise Objects, and on the Client side, having the application
>convert it back into an NSArray. However I've been unable to do
>anything with it then.
>
>I am more then confident I am going down the wrong path here, so let me
>explain what I am trying to do:
>
>I would like the Client to request a list of all Authors in the system.
> The Server accepts the request, sends back the Authors, and the Client
>then uses these Authors to populate a popup box, or a WORepeater.
>
>How would I go about creating this?
>
>Thanks in advance.
>_______________________________________________
>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.
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.
References: | |
| >Web Services (From: Michael Singh <email@hidden>) |