On Jul 13, 2011, at 10:54 AM, Calven Eggert wrote:

> Geesh, after reading this I've realized that I missed a 'minor' detail.  hehe 
>  

:-)


> My task is for a current WO application to import data from a new source, 
> which happens to be a given URL.  Far as I know it's read-only. (I can't 
> imagine having to rewrite all my WO apps of over 10 years work.  yikes, that 
> would be scary)

OK, that should be a lot less scary.  You will need them to provide some 
documentation on what exactly that URL returns.  Then use something like this:
http://hc.apache.org/httpcomponents-client-ga/

to get the content.  Parsing / handling the content depends on what the are 
sending back.


> one reply to this subject talked about REST.  is this my solution?

I thought that ERRest was mostly on the production, not consumption side.  I 
could be wrong.  It may be of some use in parsing the response in any case.


Chuck




> On 2011-07-13, at 1:12 PM, Chuck Hill wrote:
> 
>> 
>> On Jul 13, 2011, at 6:57 AM, Calven Eggert wrote:
>> 
>>> I've just been told that instead of getting data from a database within my 
>>> organization that I should be opening a URL and get the data that way.  I 
>>> have no clue how that would be done in Webobjects.  Can someone please 
>>> gently lead me in the right direction? 
>> 
>> 
>> Read only?  Full CRUD?
>> 
>> If you still want the result in EOs, then you need to write an EOF adaptor 
>> (e.g. like the JDBCAdaptor and the JNDIAdaptor).  That is going to be a good 
>> bit of work.  Maybe a lot of work.  They want to replace what EOF does with 
>> an HTTP service that will (most probably) be slower.  Unless you are using 
>> D2W, you might find that something other than WO is a better option.
>> 
>> If you just want dictionaries of read-only data, that can be considerably 
>> easier.
>> 
>> Chuck
>> 
>> 
>> -- 
>> Chuck Hill             Senior Consultant / VP Development
>> 
>> Practical WebObjects - for developers who want to increase their overall 
>> knowledge of WebObjects or who are trying to solve specific problems.    
>> http://www.global-village.net/products/practical_webobjects
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 
> 

-- 
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.    
http://www.global-village.net/products/practical_webobjects







Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to