SEI返回一个自定义对象

View: New views
2 Messages — Rating Filter:   Alert me  

SEI返回一个自定义对象

by shurrik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

SEI返回一个叫DynamicObject的对象
@WebMethod(operationName = "locate_invoice1")
public DynamicObject locate_invoice(String id) throws Exception;
这个对象是公司工具包的一个类,继承hashmap,而生成客户端后这个类代码为
public class DynamicObject
    extends HashMap
{


}
方法都丢了,怎么在调用时用到?这个类只是纯粹的一个类,没继承接口,adapter不知适合处理不?
--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛“cxf-zh”论坛。
 要在此论坛发帖,请发电子邮件到 cxf-zh@...
 要退订此论坛,请发邮件至 cxf-zh-unsubscribe@...
 更多选项,请通过 http://groups.google.com/group/cxf-zh?hl=zh-CN 访问该论坛
----
Apache CXF 首页 http://cwiki.apache.org/confluence/display/CXF/Index
-~----------~----~----~----~------~----~------~--~---


Re: SEI返回一个自定义对象

by willem.jiang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

你可以google 有关JAXB 对HashMap的支持的讨论。
这个讨论[1] 也许会对你有所帮助。

[1] http://www.nabble.com/Does-JAXB-2.0-support-Map--td16390151.html
姜宁 (Willem)
------------------
Apache CXF, Apache Camel committer
http://www.fusesource.com
http://willemjiang.blogspot.com/


On 9月14日, 下午5时16分, elliott <darkforest...@...> wrote:

> SEI返回一个叫DynamicObject的对象
> @WebMethod(operationName = "locate_invoice1")
> public DynamicObject locate_invoice(String id) throws Exception;
> 这个对象是公司工具包的一个类,继承hashmap,而生成客户端后这个类代码为
> public class DynamicObject
>     extends HashMap
> {
>
> }
>
> 方法都丢了,怎么在调用时用到?这个类只是纯粹的一个类,没继承接口,adapter不知适合处理不?
--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛“cxf-zh”论坛。
 要在此论坛发帖,请发电子邮件到 cxf-zh@...
 要退订此论坛,请发邮件至 cxf-zh-unsubscribe@...
 更多选项,请通过 http://groups.google.com/group/cxf-zh?hl=zh-CN 访问该论坛
----
Apache CXF 首页 http://cwiki.apache.org/confluence/display/CXF/Index
-~----------~----~----~----~------~----~------~--~---