Re: How to open a URL in WO

2011-07-14 Thread Maik Musall

Am 14.07.2011 um 07:06 schrieb Michael Sharp:

 On 14/07/2011, at 11:17 AM, Pascal Robert wrote:
 
 
 Le 2011-07-13 à 15:23, Calven Eggert a écrit :
 
 Just checked out that link.  this looks pretty cool.   Anyone else in the 
 WO community use it?  If so, what are your impressions?
 
 http://hc.apache.org/httpcomponents-client-ga/

Of course. Everyone uses it all the time. :-)

 
 I'm using HTTP Client 3.1 and it's great! Sadly, I can't say about 4.x, they 
 changed a lot of things, so I need to change some code.
 
 
 
 I went down this path a couple of weeks ago with the attitude of - hey it's 
 just some minor API tweaks, and I don't use it in that many places.
 
 Half a day in saw me realise I use it everywhere and the differences are far 
 from minor API tweaks. It was worth it though, particularly for flexibility 
 wrt auth schemes.

I use both 3.1 and 4.1. You can mix them in the same project since packages are 
different and I've experienced no collision of any kind. I implemented a newer 
addition with 4.1 and left the 3.1 stuff as as it is, to be upgraded whenever I 
have to touch that code again anyway.

Maik

 ___
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


How to open a URL in WO

2011-07-13 Thread Calven Eggert
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? 

Thanks,
Calven
 ___
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


Re: How to open a URL in WO

2011-07-13 Thread Chuck Hill

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









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


Re: How to open a URL in WO

2011-07-13 Thread David Holt
Could they be talking about something like REST?


On 2011-07-13, 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? 
 
 Thanks,
 Calven
 ___
 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/programmingosx%40mac.com
 
 This email sent to programming...@mac.com

 ___
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


Re: How to open a URL in WO

2011-07-13 Thread Pascal Robert

Le 2011-07-13 à 13:15, David Holt a écrit :

 Could they be talking about something like REST?

+1

 
 On 2011-07-13, 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? 
 
 Thanks,
 Calven
 ___
 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/programmingosx%40mac.com
 
 This email sent to programming...@mac.com
 
 ___
 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/probert%40macti.ca
 
 This email sent to prob...@macti.ca

 ___
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


Re: How to open a URL in WO

2011-07-13 Thread Jesse Tayler
I don't know what kind of database you are using or what kind of url data you 
might want to accept but...

apps connect to databases because apps put the logic on the database so that 
others can safely use an application or API of some sort - are you working on 
application logic that does something with the database already?

Some REST api vs. an sql database seem like such different worlds of potential 
and purpose, that I wonder if there's miscommunication.

I mean, shouldn't you already know this answer if you are going to program 
something?

Maybe just tell us specifically what it is that you have now, and what you need 
to do, and include links and someone can advise you I'm sure.



On Jul 13, 2011, 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
 
 
 
 
 
 
 
 ___
 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/jtayler%40oeinc.com
 
 This email sent to jtay...@oeinc.com

 ___
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


Re: How to open a URL in WO

2011-07-13 Thread Calven Eggert
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)

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


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
 
 
 
 
 
 
 


 ___
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


Re: How to open a URL in WO

2011-07-13 Thread Chuck Hill
With Calven's luck?  Not likely.  :-P


On Jul 13, 2011, at 10:15 AM, David Holt wrote:

 Could they be talking about something like REST?
 
 
 On 2011-07-13, 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? 
 
 Thanks,
 Calven
 ___
 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/programmingosx%40mac.com
 
 This email sent to programming...@mac.com
 
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net

-- 
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









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


Re: How to open a URL in WO

2011-07-13 Thread Jesse Tayler
don't listen to chuck! he's mischievous by nature! 

get the darn URL and you'll see if it's just some JSON feed or whatever - 
sounds like it would be.

or perhaps the feed is in an lost ancient binary machine language based on 
a six bit encoding you'll have to translate from a partially destroyed stone 
that matches it to an early non-linear form of EBCIDIC, but that's only if 
someone actually hexed your project.

you'll have to know what you're reading and parse it, I'm sure there are 
further examples once you know your protocol.

I'm sure it's not hard to make an EO to read a simple feed and store it in your 
database or whatever you need.



On Jul 13, 2011, at 1:57 PM, Chuck Hill wrote:

 With Calven's luck?  Not likely.  :-P
 
 
 On Jul 13, 2011, at 10:15 AM, David Holt wrote:
 
 Could they be talking about something like REST?
 
 
 On 2011-07-13, 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? 
 
 Thanks,
 Calven
 ___
 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/programmingosx%40mac.com
 
 This email sent to programming...@mac.com
 
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 
 -- 
 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
 
 
 
 
 
 
 
 ___
 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/jtayler%40oeinc.com
 
 This email sent to jtay...@oeinc.com

 ___
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


Re: How to open a URL in WO

2011-07-13 Thread Chuck Hill

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









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


Re: How to open a URL in WO

2011-07-13 Thread Pascal Robert

Le 2011-07-13 à 14:14, Chuck Hill a écrit :

 
 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.  

Exact. In fact, this is something that we could add later. 

 I could be wrong.  It may be of some use in parsing the response in any case.

Jakarta httpClient + the parsers in ERRest should do the job. JBoss' RestEasy 
is another option.

 
 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
 
 
 
 
 
 
 
 ___
 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/probert%40macti.ca
 
 This email sent to prob...@macti.ca

 ___
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


Re: How to open a URL in WO

2011-07-13 Thread Calven Eggert
Just checked out that link.  this looks pretty cool.   Anyone else in the WO 
community use it?  If so, what are your impressions?

 http://hc.apache.org/httpcomponents-client-ga/

On 2011-07-13, at 2:14 PM, Chuck Hill wrote:

 
 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
 
 
 
 
 
 
 


 ___
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


Re: How to open a URL in WO

2011-07-13 Thread Pascal Robert

Le 2011-07-13 à 15:23, Calven Eggert a écrit :

 Just checked out that link.  this looks pretty cool.   Anyone else in the WO 
 community use it?  If so, what are your impressions?
 
 http://hc.apache.org/httpcomponents-client-ga/

I'm using HTTP Client 3.1 and it's great! Sadly, I can't say about 4.x, they 
changed a lot of things, so I need to change some code.

 On 2011-07-13, at 2:14 PM, Chuck Hill wrote:
 
 
 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
 
 
 
 
 
 
 
 
 
 ___
 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/probert%40macti.ca
 
 This email sent to prob...@macti.ca

 ___
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


Re: How to open a URL in WO

2011-07-13 Thread Michael Sharp
On 14/07/2011, at 11:17 AM, Pascal Robert wrote:

 
 Le 2011-07-13 à 15:23, Calven Eggert a écrit :
 
 Just checked out that link.  this looks pretty cool.   Anyone else in the WO 
 community use it?  If so, what are your impressions?
 
 http://hc.apache.org/httpcomponents-client-ga/
 
 I'm using HTTP Client 3.1 and it's great! Sadly, I can't say about 4.x, they 
 changed a lot of things, so I need to change some code.
 


I went down this path a couple of weeks ago with the attitude of - hey it's 
just some minor API tweaks, and I don't use it in that many places.

Half a day in saw me realise I use it everywhere and the differences are far 
from minor API tweaks. It was worth it though, particularly for flexibility wrt 
auth schemes.

Sharpy..

 ___
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