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

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

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

    2006年11月8日

    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("參數(shù)一", omNs);
               value.addChild(fac.createOMText(value, "值一"));
               method.addChild(value);
              
               value = fac.createOMElement("參數(shù)二", 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,研究之路 閱讀(374) | 評論 (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,研究之路 閱讀(378) | 評論 (0)編輯 收藏
     
    http://randomcoder.com/articles/jsessionid-considered-harmful
    posted @ 2006-11-08 12:32 Java,研究之路 閱讀(1258) | 評論 (1)編輯 收藏
     
    主站蜘蛛池模板: 可以免费观看的毛片| 黄在线观看www免费看| 亚洲av丰满熟妇在线播放| 四虎在线视频免费观看视频| 亚洲国产精品无码久久久秋霞1| 国产精品亚洲美女久久久| 午夜精品免费在线观看| 亚洲国产av玩弄放荡人妇| 国产亚洲精品国产| 最好免费观看韩国+日本| 中文字幕在线免费视频| 亚洲最大天堂无码精品区| 中文字幕不卡亚洲 | 在线看无码的免费网站| 亚洲AV电影天堂男人的天堂| 久久亚洲精品成人777大小说| 日韩特黄特色大片免费视频| 亚洲午夜免费视频| 免费一级做a爰片久久毛片潮| 亚洲在成人网在线看| 最新精品亚洲成a人在线观看| 免费无码A片一区二三区| 免费久久人人爽人人爽av| 色综合久久精品亚洲国产| 亚洲日韩中文字幕| 久久亚洲高清综合| 国产在线观看免费视频播放器| 蜜桃视频在线观看免费视频网站WWW| 精品国产亚洲AV麻豆| 亚洲av无码不卡久久| 亚洲av鲁丝一区二区三区| 中文字幕专区在线亚洲| 国产精品无码一区二区三区免费| 亚欧在线精品免费观看一区| 最近更新免费中文字幕大全| 色偷偷亚洲第一综合网| 亚洲最大的成人网站| 精品亚洲AV无码一区二区| 中文字幕亚洲色图| 亚洲av综合色区| 国产AV无码专区亚洲精品|