<source id="4vppl"><ins id="4vppl"></ins></source>
<u id="4vppl"><sub id="4vppl"><label id="4vppl"></label></sub></u>
<object id="4vppl"></object>
  • <u id="4vppl"><li id="4vppl"><label id="4vppl"></label></li></u>

    <object id="4vppl"></object>
    <b id="4vppl"><sub id="4vppl"><tr id="4vppl"></tr></sub></b>

      <i id="4vppl"><thead id="4vppl"></thead></i>

      <thead id="4vppl"><li id="4vppl"><label id="4vppl"></label></li></thead>

      當(dāng)前位置:首頁(yè) > 網(wǎng)站舊欄目 > 學(xué)習(xí)園地 > 設(shè)計(jì)軟件教程 > 手把手教你用axis創(chuàng)建自己的webservice(四)

      手把手教你用axis創(chuàng)建自己的webservice(四)
      2010-01-15 07:20:00  作者:  來(lái)源:

      除了最后兩個(gè)發(fā)布文件以外最重要的有兩個(gè)文件,即MobileBossSoapBindingImpl.javaMobileBossServiceLocator.java

      MobileBossSoapBindingImpl代碼如下:

      java 代碼

      1.   java 代碼

      /**  

      2.           * MobileBossSoapBindingImpl.java  

      3.           *  

      4.           * This file was auto-generated from WSDL  

      5.           * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.  

      6.           */  

      7.            

      8.          package com.yy.ws;   

      9.            

      10.       public class MobileBossSoapBindingImpl implements com.yy.ws.MobileBoss{   

      11.           public com.yy.ws.ServerResponse charge(com.yy.ws.ClientRequest in0) throws java.rmi.RemoteException {   

      12.               return null;   

      13.           }   

      14.         

      15.       }   

      我們需要在這個(gè)webservice中實(shí)現(xiàn)自己的業(yè)務(wù)方法!我們加入如下業(yè)務(wù)代碼:

      java 代碼

      1.          /**  

      2.           * MobileBossSoapBindingImpl.java  

      3.           *  

      4.           * This file was auto-generated from WSDL  

      5.           * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.  

      6.           */  

      7.            

      8.          package com.yy.ws;   

      9.            

      10.       public class MobileBossSoapBindingImpl implements com.yy.ws.MobileBoss {   

      11.         

      12.           /*  

      13.            *   

      14.            * implements the service methods  

      15.            */  

      16.           public com.yy.ws.ServerResponse charge(com.yy.ws.ClientRequest req)   

      17.                   throws java.rmi.RemoteException {   

      18.               String bizInfo = req.getPhoneNumber() + "/" + req.getOpType() + "/"  

      19.                       + req.getAmount();   

      20.               System.out.println(bizInfo);   

      21.               System.out.println(req.getPhoneNumber() + "is charged successfully!");   

      22.               ServerResponse res = new ServerResponse();   

      23.               res.setMessage(bizInfo);// save service informations.   

      24.               res.setResultCode(8888);// save result code.   

      25.               return res;   

      26.           }   

      27.         

      28.       }   


      安徽新華電腦學(xué)校專業(yè)職業(yè)規(guī)劃師為你提供更多幫助【在線咨詢
      国产午夜福三级在线播放_亚洲精品成a人片在线观看_亚洲自慰一区二区三区_久久棈精品久久久久久噜噜
      <source id="4vppl"><ins id="4vppl"></ins></source>
      <u id="4vppl"><sub id="4vppl"><label id="4vppl"></label></sub></u>
      <object id="4vppl"></object>
    1. <u id="4vppl"><li id="4vppl"><label id="4vppl"></label></li></u>

      <object id="4vppl"></object>
      <b id="4vppl"><sub id="4vppl"><tr id="4vppl"></tr></sub></b>

        <i id="4vppl"><thead id="4vppl"></thead></i>

        <thead id="4vppl"><li id="4vppl"><label id="4vppl"></label></li></thead>
        亚洲欧美国产日韩在线观看 | 亚洲日韩在线观看 | 日韩一区二区欧美一区 | 在线观看日本亚洲一区 | 欧美在线精品亚洲综合网 | 在线看黄a∨无毒网站免费 永久A电影三级在线观看 |