当前位置: 代码迷 >> Java Web开发 >> web service 高手进
  详细解决方案

web service 高手进

热度:125   发布时间:2011-04-12 14:53:21.0
web service 高手进
我想服务端 储存 客户端的资料 , 客户端要怎么写?(或客户端怎样传资料上去)
我是用Axis2 做的,我的客户端想用setMemberName,就是用不到.

服务端:
package vas.services;

public class AttendanceRecord {
   
    public String getMemberName() {
        return memberName;
    }

    private String memberName;

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }


}



客户端:
package vas.services;

import java.rmi.RemoteException;
import vas.services.AttendanceRecordStub.GetMemberNameResponse;

public class Test {

   
    public static void main(String[] args) throws RemoteException {   
        AttendanceRecordStub stub = new AttendanceRecordStub();
//////////////SetMemberName davs = stub.setMemberName("abcs");
        GetMemberNameResponse res = stub.getMemberName();
        System.out.println(res.get_return());

    }

}


就是这句报错SetMemberName davs = stub.setMemberName("abcs");
搜索更多相关主题的帖子: 客户端  服务端  return  

----------------解决方案--------------------------------------------------------
给多点信息
----------------解决方案--------------------------------------------------------
  相关解决方案