I would love to use gwt-rpc for this application but the server side is an embedded device with only apache and gsoap. I have done this once for another embedded system using rocket-gwt json serialization and wrote a backend cgi exec that would unmarshall using json-c to c structs. But this has a soap service with over 150 separate soap calls. I guess I am looking for a way to do xml serialization client side and that is not going to be possible without writing my own library. It would probably be possible though with some custom annotations and deferred binding simlilar to what rocket-gwt does but I have not found such a library. Maybe I will take a stab at it when I get some time.
Thanks for the advice, Chris On Jul 15, 1:10 pm, David Vree <[email protected]> wrote: > I don't want to hijack your thread, but I am new to this and am > wondering why you don't use GWT-RPC to do the client/server > communication? > > On Jul 15, 12:40 pm, lineman78 <[email protected]> wrote: > > > It is not possible to convert POJO to XML without using some sort of > > library, but Jersey does have the ability to do JSON. I use JAXB to > > generate my server side classes and JAX-RS to marshal to XML and JSON > > depending on the Accepts header. This is fairly easy to do using a > > services context resolver annotated with provider and consumes/ > > produces application/json. I then have written a generator(no I can't > > provide it, but it is possible) so that I can write an interface for a > > POJO and it will generate the overlay type for me, but if you are > > working on a smaller project manually writing the overlay types is the > > best solution. > > > On Jul 15, 8:27 am, chris <[email protected]> wrote: > > > > Thank you for the advice and it appears that this would work for > > > server but not for client marshalling. I have been investigating a way > > > to use JAXB to marshall soap requests on the client side but have not > > > found a way as of yet. I would love to get rid of soap all together > > > but unfortunately that will not be possible. Has anyone found a way to > > > marshall the POJO to XML on the client? > > > > Thanks, > > > Chris Hinshaw > > > > On Jul 15, 1:27 am, Frederic Conrotte <[email protected]> > > > wrote: > > > > > There is no problem in using JAXB along with GWT. > > > > > See this thread for > > > > explanations:http://code.google.com/p/google-web-toolkit/issues/detail?id=4020&q=J... > > > > > On Jul 15, 2:57 am, Shyam Visamsetty <[email protected]> wrote: > > > > > > I think you cannot use JAXB with GWT. JAXB uses a lot of classes which > > > > > GWT cant compile. So, you may not be able to use it. You can use the > > > > > standard xml packages that come with GWT. > > > > > > Thanks, > > > > > Shyam Visamsetty. > > > > > > On Jul 14, 8:29 am, Alberto Rugnone <[email protected]> > > > > > wrote: > > > > > > > Hi all, > > > > > > I have to use classes with jaxb annotation on client side, but GWT > > > > > > compiler refuse to work throwing following exception > > > > > > > No source code is available for type javax.xml.namespace.QName > > > > > > No source code is available for type javax.xml.bind.JAXBElement<T> > > > > > > > etc... > > > > > > > someone can help me > > > > > > > Thank you very much in advanced > > -- 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.
