GWT和JAXB对象 [英] GWT and a jaxb objects

查看:153
本文介绍了GWT和JAXB对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用GWT的基础上,将在其他地方发送到Web服务客户端的对象。这些对象通过JAX-WS对此我pretty务必使用JAXB从那些WSDL中的XSD中构建对象产生。

I am trying to use GWT to build objects on the client side that would be sent to a web service elsewhere. These objects are generate through JAX-WS which I am pretty sure uses jaxb to build objects from the xsds that are in the wsdl.

总之,GWT是应该能够忽略注解或任何支持这一点,但它不是为我工作。下面是我得到的错误之一:

Anyhow, GWT was supposed to be able to support this by ignoring annotations or whatever, but it isn't working for me. Here is one of the errors that I am getting:

Line 4: The import javax.xml.bind cannot be resolve

我使用GWT 2和谷歌的Eclipse插件。

I am using GWT 2 and the Google plugin for Eclipse.

推荐答案

您可以使用JAXB生成客户端上的对象如果您在您的GWT编译路径从javax.xml.bin.annotation包中的源文件。您可能需要包括来自javax.xml.bind中的一些源文件和javax.xml.bind.annotation.adapters以及得到它来编译。

You can use your generated JAXB objects on the client if you include the source files from the javax.xml.bin.annotation package in your GWT compile path. You may need to include a few source files from javax.xml.bind and javax.xml.bind.annotation.adapters as well to get it to compile.

这篇关于GWT和JAXB对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆