Follow up to this. Thanks for everyones help - i've learned that adding a web service to your app engine based java app is very easy using restlet and this tutorial (coming from the .net world - rest is very cool!) * http://wiki*.*restlet*.org/docs_1.2/13-*restlet*/275-*restlet*/*252*-* restlet*.pdf
the rest of my question deals with how to provide the correct information when calling a rest web service to correctly identify the user. When an outside app sends data in, or requests data out - they would need to securely and correctly provide the google account the data is going to belong to which would go into buidling a call to the user service on the app engine side, so persistant data can be read and written to on the users behalf. In other words, persistant stored object with a app engine user services user object stored in it would need to be accessed with a jdo query providing a "user == u" param. If a user loggs in interactivly via the web site on AE that's a no brainer since we make them log in to their google account and use the user service. My best solution so far is to provide users who register on my app engine site several long key codes and say - ok if you pass me these codes my app will figure out your gmail account from there inside the app engine code - but i'd rather they just authenticate with some token the generate on their end. Any help would be appriciated but i'll post my findings on this thread. Ben On Fri, Jun 5, 2009 at 12:08 PM, <[email protected]> wrote: > I am seeing a lot of variations on this question where i think some other > people are getting stuck on this. I'm sorry my SOA expertise comes from the > world of .net that i've painfully extracted myself from. I know i'm missing > some basic info on SOA and Java - If anyone can help point me in the right > direction you'll save my weekend of research. > > I have my stockwatcher tutorial humming along and using the GWT and App > Engine to use the user service and store lists of stocks based on the user's > google account. For my example i want to add a web service to the project so > someone out in Timbukto can have a WSDL and call a function in the > stockwatcher app to - say - add /remove stocks from their list using another > UI. If this was .net, i'd add a .asmx file with a code behind that did the > work. and they would consume the url http://myapp.appspot.com/service.asmx > > The client would need to provide google account credentials to the service > (right?) so they can work with the data object they entered using the normal > GWT based web page running on appspot.com (i.e their list of stocks) Any > help in going about added a web service to the stockwatcher example and > exposing some of the methods would be greatly appreciated. I'm deep into > REST and RPC but fear i'm on the wrong track. > > - Ben --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
