Axis2引用發(fā)布服務(wù)

          Posted on 2009-07-14 14:21 eric_xu 閱讀(262) 評論(0)  編輯  收藏 所屬分類: J2EE

          wsdl生成客戶端

          Wsdl2java –uri http://localhost:8080/axis2/services/SimpleServer?wsdl –o d:" -d jaxbri

          將生成的java文件拷貝到工程的src文件夾下

          public class WsTest {

              
          /**
               * 
          @param args
               * 
          @throws RemoteException 
               
          */
              
          public static void main(String[] args) throws RemoteException {
                  
          // TODO Auto-generated method stub
                  SimpleServerStub ssstub = new SimpleServerStub();
                  SimpleMethod sm 
          = new SimpleMethod();
                  sm.setName(
          "xujun");
                  SimpleMethodResponse response 
          = ssstub.simpleMethod(sm);
                  String result 
          = response.get_return();
                  System.out.println(result);
              }

          }

          posts - 37, comments - 5, trackbacks - 0, articles - 0

          Copyright © eric_xu

          主站蜘蛛池模板: 丰镇市| 宜黄县| 农安县| 隆回县| 襄垣县| 武鸣县| 邯郸市| 通州市| 剑河县| 保亭| 南开区| 江阴市| 霞浦县| 界首市| 汝阳县| 吴江市| 南投市| 历史| 达日县| 四川省| 新建县| 财经| 嘉黎县| 虞城县| 宁城县| 安康市| 新昌县| 崇左市| 抚松县| 平乐县| 当雄县| 汾阳市| 界首市| 开阳县| 日土县| 银川市| 安塞县| 达日县| 墨竹工卡县| 封丘县| 灵台县|