<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("此處填寫(xiě)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,研究之路 閱讀(382) | 評(píng)論 (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,研究之路 閱讀(386) | 評(píng)論 (0)編輯 收藏
     
    http://randomcoder.com/articles/jsessionid-considered-harmful
    posted @ 2006-11-08 12:32 Java,研究之路 閱讀(1270) | 評(píng)論 (1)編輯 收藏
     
    主站蜘蛛池模板: 亚洲国产精品一区二区第一页免| 国产成人无码区免费内射一片色欲| 亚洲人成网男女大片在线播放| 亚洲第一AAAAA片| 亚洲无码高清在线观看| 亚洲情侣偷拍精品| 亚洲av日韩片在线观看| 亚洲高清免费视频| 国产国拍亚洲精品福利 | 国产精品免费大片| 久久久久久久99精品免费| 久久99精品国产免费观看| 最近中文字幕免费完整| 57PAO成人国产永久免费视频 | 国产中文字幕在线免费观看| 国产视频精品免费视频| a国产成人免费视频| 久久99国产乱子伦精品免费| 美丽的姑娘免费观看在线播放 | 东北美女野外bbwbbw免费| 十八禁视频在线观看免费无码无遮挡骂过 | 亚洲无码高清在线观看| 国产亚洲综合久久系列| 内射干少妇亚洲69XXX| 亚洲人成在线播放| 亚洲国产精品18久久久久久| 野花视频在线官网免费1| 中文字幕免费在线视频| 一区二区免费视频| 三年片在线观看免费观看高清电影| 成人免费视频软件网站| 亚洲A∨午夜成人片精品网站| 日韩亚洲变态另类中文| 亚洲美女视频网址| 亚洲av最新在线观看网址| 一级毛片免费播放视频| 一级成人a毛片免费播放| 成人毛片免费视频| 国产精品亚洲高清一区二区 | 色播在线永久免费视频| 亚洲人成色7777在线观看不卡|