<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    2007年3月10日

    1. install the following software
    jre 1.5 or 1.6,  tomcat 5525, eclipse, axis2

    and in eclipse preferences set tomcat to web server, set jre env and set axis2's runtime

    2. create a java project and add axis2 runtime library to its build library

    test ws client sample code:

    public class TestSms
    {
    private static EndpointReference targetEPR = new EndpointReference(
       "http://cdl:8080/axis2/services/Version");

     public static OMElement getGetLeftElement(){
               OMFactory fac=OMAbstractFactory.getOMFactory();
               OMNamespace omNs=fac.createOMNamespace("此處填寫WS的命名空間","hw");
               OMElement method=fac.createOMElement("WS 方法名",omNs);
               OMElement value = fac.createOMElement("參數一", omNs);
               value.addChild(fac.createOMText(value, "值一"));
               method.addChild(value);
              
               value = fac.createOMElement("參數二", omNs);
               value.addChild(fac.createOMText(value, "值2"));
               method.addChild(value);
              
             
               return method;
        }
          
           public static void main(String[] args){
                  try{
                         Options options=new Options();
                         options.setTo(targetEPR);
                         options.setAction("命名空間/WS 方法名");
                         ServiceClient sender=new ServiceClient();
                         sender.setOptions(options);
                         OMElement sayHello=TestSms.getGetLeftElement();
                         //WSDLConstants.
                        
                         OMElement result=sender.sendReceive(sayHello);
                        
                         OMElement elem = result.getFirstElement();
                         System.out.println(elem.getText());
                         //System.out.println(result);
                  }
                  catch(Exception axisFault){
                         axisFault.printStackTrace();
                  }
           }

    }



    ref: http://zhangjunhd.blog.51cto.com/113473/23690
    posted @ 2007-10-25 20:58 Java,研究之路 閱讀(373) | 評論 (0)編輯 收藏
     

    How to load balance Tomcat 5.5 with Apache on Windows


    ref:
    http://thought-bytes.blogspot.com/2007/03/how-to-load-balance-tomcat-55-with.html

    posted @ 2007-03-10 17:17 Java,研究之路 閱讀(377) | 評論 (0)編輯 收藏
     
    主站蜘蛛池模板: jizz免费观看视频| 亚洲午夜福利AV一区二区无码| 国产精品免费久久久久电影网| 亚洲va在线va天堂va手机| 国产成人精品日本亚洲专区61 | 亚洲中文字幕第一页在线| 成年女人免费碰碰视频| 曰批视频免费40分钟试看天天| 精品国产免费人成网站| 精品特级一级毛片免费观看| 亚洲情A成黄在线观看动漫软件| 婷婷亚洲综合五月天小说| 亚洲三区在线观看无套内射| 日韩精品亚洲专区在线观看| 色妞WWW精品免费视频| 四虎在线免费视频| 三年片在线观看免费观看大全一| 久久久免费观成人影院| 二级毛片免费观看全程| 麻豆安全免费网址入口| 黄床大片30分钟免费看| 国产精品亚洲专区无码不卡| 亚洲成av人在线观看网站| 亚洲午夜无码毛片av久久京东热 | 99久久99久久免费精品小说| 国产羞羞的视频在线观看免费| 国产福利免费视频| 福利免费在线观看| 中文字幕视频免费在线观看| 一级做a爱片特黄在线观看免费看| 无忧传媒视频免费观看入口| 一级特黄录像免费播放中文版| 日本在线观看免费高清| 免费看内射乌克兰女| 一个人免费观看日本www视频| 九九九精品视频免费| 国产高潮流白浆喷水免费A片 | 一级免费黄色大片| a级毛片免费全部播放| 一级毛片免费观看| 免费在线观看h片|