用XFIRE传递对象数据类型需要定义, 导出接口名+.aegis.xml的文件,如<?xml version="1.0" encoding="UTF-8"?>
<mappings>
<mapping>
<method name= "GetYspb" >
<return-type componentType= "com.exportclass.HisYspb" />
</method>
</mappings>将该文件放到导出接口所在的包下.
<mappings>
<mapping>
<method name= "GetYspb" >
<return-type componentType= "com.exportclass.HisYspb" />
</method>
</mappings>将该文件放到导出接口所在的包下.
解决方案 »
- Struts2性能问题...
- Tomcat5.5+MSSQL连接多数据库怎么设计连接池
- 一个老问题:could not initialize a collection: XXX
- struts中的ajax配置问题
- 在 Hibernate Synchronizer 中,如何使用HQL ?
- struts里面<html:text ...value=>的疑问??????????在线等...
- 为什么中文显示的都是乱码在weblogic 7.5中
- struts-config.xml每次修改后一定要重起weblogic服务才能生效吗?
- 如何把Vector的元素整体转换到Collection?
- 运行jb8注册机JBLicenseGen.exe时出错,谁知道什么回事,错误代码如下
- 系统上线,急急急! Hibernate 非常奇怪的问题 org.hibernate.TransactionException: JDBC rollback failed
- java写的Client如何处理webservice返回的复杂数据类型
* 作者:曹坤
* 日期:2007-5-16
*/package com.export;import java.util.Collection;import org.springframework.dao.DataAccessException;
/**
* @author 曹坤
*
*/
public interface Iquery {
public Collection GetYspb(String gzrq) throws DataAccessException;
public Collection GetYspb(String gzrq,Long xzpb) throws DataAccessException;
public Collection GetYgdm(String ygdm) throws DataAccessException;
}
Iquery.aegis.xml文件<?xml version="1.0" encoding="UTF-8"?>
<mappings>
<mapping>
<method name= "GetYspb" >
<return-type componentType= "com.exportclass.HisYspb" />
</method> <method name="GetYgdm">
<return-type componentType="com.exportclass.HisYgdm"></return-type>
</method>
</mapping>
</mappings>
String testname = name.getValue();
//
testname 就是"张三"