Saturday, February 20, 2016

Re: ProjectStruture

Thanks Jens... perfect. Exactly what I was after (before I disappeared down a dead-end of rpc calls and tons of re-writing, which I'd probably give up on).

Loads to look in to, and get going on.  Thank you. I'll see how far I get and post any questions I have.  Hopefully my only remaining concern is the file upload and download functionality.

Thanks again, much appreciated.

Regards, Sam

On 20 February 2016 at 15:46, Jens <jens.nehlmeier@gmail.com> wrote:
GWT-RPC is just one convenient way to communicate with a server using GWT. However GWT-RPC uses its own serialization format that is based on JSON. While convenient to use GWT-RPC also has some pain points that are often discovered later.

If you just want to make a POST / GET to an URL and transfer some serialized data (JSON, XML, custom) you can use GWT's RequestBuilder class (which is actually used internally by GWT-RPC as well). In order to get your XML going you can use GWT's XML API http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsXML.html or use a library that maps from Java POJOs to/from XML. As example of such a library take a look at https://github.com/hpehl/piriti

The above should allow you to not rewrite all the server side code.

-- J.

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/rR0liCZDSl4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment