public static void main(String[] args) {
        
        Service srvcModel=new ObjectServiceFactory().create(IXzspApplyItem.class);

       XFireProxyFactory factory = new XFireProxyFactory(XFireFactory.newInstance().getXFire());
       String url="http://192.168.1.165:8090/xzspweb/services/XzspApplyItem";
        try {
            
            IXzspApplyItem xzspApplyItem=(IXzspApplyItem)factory.create(srvcModel,url);
            String str =xzspApplyItem.HelloServices("service");
            System.out.println(str);
            
            XzspApplyItemPart xp=new XzspApplyItemPart();
        xp.setItemId(30509l);
          xp.setItemName("想");
          Date a=new Date();
          //xp.setApplyDate(applyDate);
         xp.setUserId(696666l);
          xp.setGroupId("99999") ;
         xp.setApplyNo("99999") ;
         xp.setStatus("99999") ;
        xp.setTjGroupId("99999");
        boolean ss= xzspApplyItem.saveXzspApplyItem(xp);
        
        System.out.println(ss);
        } catch (Exception e) {
            
            e.printStackTrace();
        }
    }

上面代码为客户端测试代码。
要根据服务端提供的方法写接口类。

注意传递参数的对象所在包路径必须和服务端包路径一样。不然就出现传递过去对象值为空。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-03-01
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2021-08-17
相关资源
相似解决方案