用XFIRE传递对象数据类型需要定义, 导出接口名+.aegis.xml的文件,如<?xml version="1.0" encoding="UTF-8"?>
 <mappings>
    <mapping>
        <method name= "GetYspb" >
            <return-type componentType= "com.exportclass.HisYspb" />
           
        </method>            
    
</mappings>将该文件放到导出接口所在的包下.

解决方案 »

  1.   

    /**
     * 作者:曹坤 
     * 日期: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>
      

  2.   

    如: JAXBElement <String> name = new JAXBElement <String>(new QName("http://service.test.com","value"),String.class,"张三"); 
    String testname = name.getValue();
    //
    testname 就是"张三"