最好还是使用数组,每一个数组数据项用特定的分隔符分开。很多社区医保系统都是这样处理的。因为用MAP很多其他语言是无法识别的。

解决方案 »

  1.   

    MAP在各种语言中的实现不一致,无法统一成对象.数组是可以的.
      

  2.   

    那Webservice能不能传递对象的公共成员方法呢?
      

  3.   

    webservice能传递对象的公共成员方法吗?
      

  4.   

    你做个接口对象就可以了呀。XFIRE传递对象。/** 
    * 作者:曹坤 
    * 日期: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>