I expect it should share a common description, like XmlSchema or IDL and should generate classes for target language.
I fo开发者_如何学运维und Thrift and it's really nice solution, but it doesn't support structures polymorphism. I would like to have collections of base class objects, where I could place instances of subclasses, serialize this and deserialize at the opposite side. Some mechanism of polymorphic behavior support, like Visitor, would be a perfect.
Does anybody know something suitable for these requirements?
I would suggest trying Protocol Buffers. It is a Google originated technology so I would imagine it is well supported by C++ and GWT.
http://code.google.com/apis/protocolbuffers/
As mentioned, something like Protocol Buffers would definitely be your best bet. It supports C++ and there are two separate projects that support GWT: protostuff and protobuf-gwt.
There are many comparisons between Protocol Buffers and Thrift, so if you're looking to use Thrift, it's possible to integrate with GWT as well, through the gwt-rpc-plus project.
精彩评论