Greetings,

Attempting to communicate bidirectionally between a GWT app and another
Java server (on the same machine or not) proved to be a bit of a challenge
for me (i.e. getting past the SOP restriction, bidirectional
communications, and structured communications).  After a lot of head
banging, some good feedback from this list, and some web searching, I
finally solved my problem.  I am now able to communicate XML documents
bidirectionally between a GWT app and another Java server.

On top of that, I created an abstract data structure that stores arbitrary
name / value pairs, where the value can be boolean, int, long, double,
String, etc., an array, or even another abstract data map (i.e. arbitrarily
recursive structure).  This can be serialized to XML, sent bi-directionally
to/from GWT and another Java server, and then de-serialized back into the
abstract data map on the opposite side.  With this layer one can
communicate arbitrary structured data without defining a class for each
unit or having to deal with the complexities of XML.  This makes dealing
with the data (on both ends) very, very easy.

I'm happy to share this code but didn't want to waste a bunch of time
packaging it all up if there is no real interest.  If there is interest in
one or both layers, I'd be happy to package it up and make it available.
 Just let me know.

Thanks.

Blake McBride

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to