控制台程序中调用remoting服务,接口参数中有一个参数是sortedlist,一点问题都没有,调试能进入windows service中,改成页面程序中调用remoting服务,就报索引超过数组长度错误,也进不到服务中,为什么??

解决方案 »

  1.   

    sortedlist sl = new sortedlist()
    sl.add("1","11");itest.remotfunc(sl);调试web客户端代码,一执行到itest.remotfunc(sl)就出错,其实并没有进入到window service的方法中,那个方法一个什么都没做,就return,而且也没有进入到service中的方法中,那怎么会报什么索引超过数组边界
      

  2.   

    这是什么方法,是做什么用的?
    itest.remotfunc(sl);
      

  3.   

    那个方法,可以认为什么都不做,但是有一个sortedlist类型的参数而已
      

  4.   

    ok,解决了,sortedlist没有实现序列化接口,不能作为远程方法参数传送,用hashtable即可