Re: 3rd parties and GWT-RPC?

2009-06-16 Thread Sumit Chandel
Hi markww,
In order to reuse the GWT RPC services you've already defined directly,
you'll have to create your own serializers in the Objective-C world that can
match the signature RPC expects on incoming payloads. You'll also need to
continue to match this signature if it changes across releases. In other
words, this is a possible approach, but one you should steer away from
unless you enjoy pain.

Another possibility is to create gateway services to your RPC servlets on
your server-side that you can call from your Objective-C application. This
approach isn't as bad since you can expose whatever you need in the gateway
service that the mobile version of your application requires, and have the
gateway reuse the GWT serialization mechanisms to talk to your GWT RPC
service.

Finally, another approach would be to create another pair of services that
could support the calls you need to make from the Objective-C mobile
application. On the plus side, if you work with JSON-encoded data on the
client, you should be able to reuse the data transfer objects you're using
in your GWT RPC services, however this would only be true in GWT 2.0 (where
JavaScriptObject overlays will be allowed to implement a single interface).

Hope that helps,
-Sumit Chandel

On Fri, Jun 12, 2009 at 6:20 PM, markww mar...@gmail.com wrote:


 Hi,

 I'm wondering what options we have when we want a 3rd party to talk to
 our server. For example, I'm using GWT RPC as-is. So my clients
 (browsers) talk to the server perfectly, works great.

 Now I'd like to make an iPhone app (an actual objective-c compiled
 app) that also uses my web service. Normally if I were using PHP, I'd
 just call the PHP scripts via a url in the objective-c application.
 This does not seem possible when using GWT-RPC. Is there any way to do
 it? I know I can just let the user use mobile safari to access my web
 app, but would prefer a thick client.

 Thanks for any suggestions


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



3rd parties and GWT-RPC?

2009-06-12 Thread markww

Hi,

I'm wondering what options we have when we want a 3rd party to talk to
our server. For example, I'm using GWT RPC as-is. So my clients
(browsers) talk to the server perfectly, works great.

Now I'd like to make an iPhone app (an actual objective-c compiled
app) that also uses my web service. Normally if I were using PHP, I'd
just call the PHP scripts via a url in the objective-c application.
This does not seem possible when using GWT-RPC. Is there any way to do
it? I know I can just let the user use mobile safari to access my web
app, but would prefer a thick client.

Thanks for any suggestions


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---