Just to correct something...i dont know if you can call these rpc services
from another java application, but GWT does not use JSON on their RPC calls.
it is possible to work with json, but the default value are serialized
objects.

On Wed, Jul 29, 2009 at 12:11 PM, Trevis <trevistho...@gmail.com> wrote:

>
> I'm also pretty new to GWT and your scenario never occurred to me.
> Generally i think that it's probably not the greatest idea to try and
> call the GWT RPC's from a different front end and i've not come across
> anything that would give you a wsdl (or something like a wsdl) that
> you could use from non GWT java app.  But, i cant think of any reason
> why you couldnt make it work.
>
> The RPC calls are just HTTP Post requests which receive a JSON
> response.  Introducing JSON into a non web app seems like a red flag
> to me but if you really wanted to do it, you should be able to convert
> those into java objects.
>
> I *think* that a better solution might be to just rewrite a SOAP based
> webservice layer that uses the same code that the GWT services calls.
> That's not a great solution either since it introduces duplication but
> perhaps a better way to go would be to port the logic to a SOAP based
> webservice layer and then call the SOAP service from the GTW RPC
> server so that the logic only exists in one place.
>
> Just a thought, ymmv.
>
> On Jul 29, 9:38 am, Steve <stever...@gmail.com> wrote:
> > Hello All,
> >
> > I'm new to GWT so please forgive me if there is some obvious answer to
> > my problem.  I googled around for this information and came up dry.
> >
> > Here is my problem.  There is an existing GWT Application that I want
> > to leverage in a new application that I am building.  This GWT app
> > uses RPC.  I was hoping to find a way to call some of its RPCs from a
> > seperate non-GWT Java application.
> >
> > I am more familiar with using SOAP services, which provides a way to
> > generate a client from a service description (WSDL).  Is there
> > anything similar for GWT's RPC?  If there isn't, does anyone know if
> > it is possible to create the POSTs to the GWT servlet by hand? Are
> > there any utilities for this?
> >
> > Thanks,
> >
> > Steve
> >
>


-- 
Quer aprender a programar? acompanhe:
Wants to learn GWT? Follow this blog ->

http://tcninja.blogspot.com

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

Reply via email to