由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 问个gwt client code调用远程object的问题
相关主题
Random thoughts on JavascriptWhat is the difference between web application and web services?
也问个SOAP相关问题Web Services 现在很热吗?
问个入门问题。什么是JAX WS
vaadin怎么把servlet publish成web services
Re: Can Web Services return Hash or Objewhat do u think of SOAP vs REST ( or even FB's thrift server)?
[转载] 急!在线等---从Servlet调用AXIS的Web Service 遇到问题!java web service 得迷惑
http post binding in wsdl那么多java证书,该考哪个?
Can someone help on Soap?soa变成rest,大家公司在用哪个?
相关话题的讨论汇总
话题: gwt话题: module话题: errorlist话题: source话题: object
进入Java版参与讨论
1 (共1页)
b***e
发帖数: 15201
1
我刚开始学gwt,想做个小应用,call一个web service(SOAP),该service会返回一个
object数组,然后我想用gwt的一些widgets在用户端来显示这个object数组包含的数据。
现在我是在gwt的server code里面调用web service,成功的取到了这个对象数组"
errorlist"。 我想把errorlist返回给client code。
我google来的近似答案是,需要把errorlist这个class放在shared目录,让client
side code可以编译到它。
但是现在的问题是,这个errorlist从WSDL生成,里面用到了org.apache.axis的一些类
。如果是把这个类文件放server端编译就毫无问题。放到shared目录后,就出错,说是:
org.apache.axis.description.ElementDesc can not be found in source packages.
Check the inheritance chain from your module; it may not be inheriting a
required module or a module may not be adding its source path entries
properly.
里面用到的简单类也找不到,java.util.Calendar can not be found in source
packages. Check the inheritance chain from your module; it may not be
inheriting a required module or a module may not be adding its source path
entries properly.
我加了import java.util.Calendar也不行。
有熟悉gwt的大侠帮我看看这个问题吗?谢谢!
o**1
发帖数: 6383
2
java.util.Calendar 是不支持的。
你只能用 Date
这一点是GWT的弱点。需要写DTO来传递数据。

据。
是:
packages.

【在 b***e 的大作中提到】
: 我刚开始学gwt,想做个小应用,call一个web service(SOAP),该service会返回一个
: object数组,然后我想用gwt的一些widgets在用户端来显示这个object数组包含的数据。
: 现在我是在gwt的server code里面调用web service,成功的取到了这个对象数组"
: errorlist"。 我想把errorlist返回给client code。
: 我google来的近似答案是,需要把errorlist这个class放在shared目录,让client
: side code可以编译到它。
: 但是现在的问题是,这个errorlist从WSDL生成,里面用到了org.apache.axis的一些类
: 。如果是把这个类文件放server端编译就毫无问题。放到shared目录后,就出错,说是:
: org.apache.axis.description.ElementDesc can not be found in source packages.
: Check the inheritance chain from your module; it may not be inheriting a

b***e
发帖数: 15201
3
谢谢,看来我可能要重新在客户端写这个类。。。

【在 o**1 的大作中提到】
: java.util.Calendar 是不支持的。
: 你只能用 Date
: 这一点是GWT的弱点。需要写DTO来传递数据。
:
: 据。
: 是:
: packages.

1 (共1页)
进入Java版参与讨论
相关主题
soa变成rest,大家公司在用哪个?Re: Can Web Services return Hash or Obje
soap binding with CXF[转载] 急!在线等---从Servlet调用AXIS的Web Service 遇到问题!
如何学习用Java开发Web Service?http post binding in wsdl
现在做jasper report,amazon web services了,goodbug我要经常向你请教了。Can someone help on Soap?
Random thoughts on JavascriptWhat is the difference between web application and web services?
也问个SOAP相关问题Web Services 现在很热吗?
问个入门问题。什么是JAX WS
vaadin怎么把servlet publish成web services
相关话题的讨论汇总
话题: gwt话题: module话题: errorlist话题: source话题: object