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

Re: Web Services


  • Subject: Re: Web Services
  • From: Robert Walker <email@hidden>
  • Date: Fri, 11 Jul 2003 01:00:44 -0400

Chuck is absolutely right here. The entire point of Web Services is to transfer data and invoke remote methods (operations) with a completely standard and abstract protocol without regard for platform, OS, programming language, development tools, etc.

If you're really serious about web services you must have a reasonable understanding of XML, SOAP and WSDL. None of these are specific to WebObjects...therefor any objects specific to WebObjects, or anything specific to any particular environment, do not get transferred directly through web services. What you will do is send the information contained within the specific objects of a platform wrapped in a standard SOAP message. It is possible to send a complete definition of any particular object through a SOAP message, but it must first be serialized into XML and de-serialized on the other end. WebObjects provides the tools to do this.

My suggestion: First, put down your WebObjects docs and pick up some information on XML, SOAP, WSDL and any other web services related materials and really get a handle on what a web service is. Then look back to the WebObjects docs (and Apache AXIS) to learn WebObjects implementation of web services.

On Thursday, July 10, 2003, at 03:47 PM, email@hidden wrote:

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


--
Sincerely,
Robert Walker
http://www.robertwalker1.com
_______________________________________________
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: Re: DB Queries processed by DB Server or WebObjects?
  • Next by Date: Re: Web Services (Ideas Needed)
  • Previous by thread: Re: Web Services (Ideas Needed)
  • Next by thread: Application Properties
  • Index(es):
    • Date
    • Thread