锘??xml version="1.0" encoding="utf-8" standalone="yes"?>深夜国产福利99亚洲视频,久久青青成人亚洲精品,91久久亚洲国产成人精品性色 http://www.tkk7.com/persister/category/15329.htmlzh-cnSat, 11 Sep 2010 09:51:19 GMTSat, 11 Sep 2010 09:51:19 GMT60WebService & Axis1.4瀛︿範(fàn)鎬葷粨http://www.tkk7.com/persister/archive/2010/08/05/328035.htmlpersisterpersisterThu, 05 Aug 2010 03:58:00 GMThttp://www.tkk7.com/persister/archive/2010/08/05/328035.htmlhttp://www.tkk7.com/persister/comments/328035.htmlhttp://www.tkk7.com/persister/archive/2010/08/05/328035.html#Feedback0http://www.tkk7.com/persister/comments/commentRss/328035.htmlhttp://www.tkk7.com/persister/services/trackbacks/328035.html闃呰鍏ㄦ枃

persister 2010-08-05 11:58 鍙戣〃璇勮
]]>
TCPMornitor鐩戞帶web service鐨勮姹傚拰鐩稿簲鍐呭http://www.tkk7.com/persister/archive/2010/08/04/327906.htmlpersisterpersisterWed, 04 Aug 2010 02:52:00 GMThttp://www.tkk7.com/persister/archive/2010/08/04/327906.htmlhttp://www.tkk7.com/persister/comments/327906.htmlhttp://www.tkk7.com/persister/archive/2010/08/04/327906.html#Feedback0http://www.tkk7.com/persister/comments/commentRss/327906.htmlhttp://www.tkk7.com/persister/services/trackbacks/327906.html
1 set Axis_Lib=D:\workspace\TestOFBizServices\lib
2 set Java_Cmd=java -Djava.ext.dirs=%Axis_Lib%
3 %Java_Cmd% org.apache.axis.utils.tcpmon

鍚姩鍚庯紝濉叆鐩稿叧鐨凩isten port錛宧ost鍜宲ort銆俬ost鍜宲ort鏄疄闄呭搷搴旂殑涓繪満鍦板潃鍜岀鍙c俵isten port鏄洃鍚鍙o紝鎵鏈夊彂閫佸埌l(fā)isten port鐨勮姹傞兘浼?xì)铦{鍙戠粰host鍜宲ort銆傛墍浠ュ湪嫻嬭瘯鐨勬椂鍊欙紝蹇呴』灝嗚姹傜殑绔彛鏀規(guī)垚listen port榪欐牱鎵嶈兘鐩戝惉浣犵殑璇鋒眰鍐呭銆?br />


persister 2010-08-04 10:52 鍙戣〃璇勮
]]>
AXIS瀛︿範(fàn)鎬葷粨http://www.tkk7.com/persister/archive/2008/10/21/235735.htmlpersisterpersisterTue, 21 Oct 2008 09:50:00 GMThttp://www.tkk7.com/persister/archive/2008/10/21/235735.htmlhttp://www.tkk7.com/persister/comments/235735.htmlhttp://www.tkk7.com/persister/archive/2008/10/21/235735.html#Feedback0http://www.tkk7.com/persister/comments/commentRss/235735.htmlhttp://www.tkk7.com/persister/services/trackbacks/235735.html

銆銆涓銆丄xis鐜鐨勫畨瑁?/strong>

銆銆1銆佸畨瑁呯幆澧?J2SE SDK錛孴omcat錛宔clipse銆?/p>

銆銆2銆佸埌 http://xml.apache.org 緗戠珯涓嬭澆Axis瀹夎鍖呫?/p>

銆銆3銆佸皢Axis鐩稿叧鍖呮枃浠舵斁鍦╓EB-INF\lib鐩綍涓嬶紝闇瑕佸彟澶栦笅杞絘ctivation.jar銆?/p>

銆銆Axis鏀寔涓夌web service鐨勯儴緗插拰寮鍙戯紝鍒嗗埆涓猴細(xì)

銆銆1銆丏ynamic Invocation Interface 錛圖II錛?/p>

銆銆2銆丏ynamic Proxy鏂瑰紡

銆銆3銆丼tubs鏂瑰紡

銆銆鍓嶄袱縐嶆柟寮忔垜灝變笉浠嬬粛浜嗭紝鍚屼簨鍛婅瘔鎴戜粬浠嚜宸遍兘涓嶄嬌鐢ㄥ墠涓ょ鏂瑰紡錛屼粬浠緩璁垜浠嬌鐢⊿tubs鏂瑰紡錛屽洜姝ゆ垜灝變富瑕佸氨浠嬬粛涓涓嬬涓夌鏂瑰紡銆傛敞鎰忥紝鎴戣嚜宸辯殑Java婧愪唬鐮佹槸鏀懼湪D錛歕workspace\test\鐩綍涓嬶紝Axis鐩稿叧鍖呮枃浠舵斁鍦―錛歕workspace\test\WEB-INF鐩綍涓嬨?/p>

銆銆浜屻佺紪鍐檞sdd鍙戝竷web鏈嶅姟錛岀紪鍐檚tub client璁塊棶web鏈嶅姟

銆銆1銆佺紪鍐欐湇鍔$紼嬪簭server錛孲ayHello.java錛岀紪璇憇erver.SayHello.java

package server;
public class SayHello
{
    
public String getName(String name)
    {
        
return "hello "+name;
    }
}

 

銆銆2銆佺紪鍐檞sdd鏂囦歡

銆銆deploy.wsdd鏂囦歡鍐呭濡備笅錛?/p>

<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 
<service name="SayHello" provider="java:RPC">
  
<parameter name="className" value="server.SayHello.getName"/>
  
<parameter name="allowedMethods" value="*"/>
 
</service>
</deployment>

 

銆銆3銆佸彂甯冩湇鍔★細(xì)

銆銆緙栬緫涓涓猟eploy.bat錛孉xis_Lib涓篴xis.jar璺緞銆傚唴瀹瑰涓嬶紙娉ㄦ剰鐩綍鍚嶄腑涓嶈鍖呭惈絀烘牸錛夛細(xì)

set Axis_Lib=D:\workspace\test\WEB-INF\lib
set Java_Cmd
=java -Djava.ext.dirs=%Axis_Lib%
set Axis_Servlet
=http://localhost:8080/test/servlet/AxisServlet
%Java_Cmd% org.apache.axis.client.AdminClient -l%Axis_Servlet% deploy.wsdd

 

銆銆鎵ц榪欎釜鎵瑰鐞嗘枃浠訛紝鎵ц榪欎釜鎵瑰鐞嗕箣鍓嶏紝tomcat蹇呴』鍚姩璧鋒潵銆傚鏋滃鐞嗘垚鍔熺殑璇濓紝鐒跺悗灝哻lass鏂囦歡鎷瘋礉鍒癮xis鐨刟xis"WEB-INF"classes鐩綍涓紝鐒跺悗璁塊棶http://localhost:8080/test/services 灝變細(xì)鏄劇ず鏈嶅姟鍒楄〃銆?/p>

銆銆4銆佺敓鎴愬鎴風(fēng)client stub鏂囦歡

銆銆鍦ㄦ祻瑙堝櫒涓婅闂湇鍔″櫒绔殑鏈嶅姟錛屽彲浠ヤ笅杞藉埌WSDL鏂囦歡錛岄氳繃Axis鐨勭浉鍏沖伐鍏鳳紝鍙互鑷姩浠嶹SDL鏂囦歡涓敓鎴怶eb Service鐨勫鎴風(fēng)浠g爜銆?/p>

銆銆緙栧啓涓涓猈SDL2Java.bat鏂囦歡錛屽叾鍐呭濡備笅錛?/p>

set Axis_Lib=D:\workspace\test\WEB-INF\lib
set Java_Cmd
=java -Djava.ext.dirs=%Axis_Lib%
set Output_Path
=D:\workspace\test\src
set Package
=server.SayHello
%Java_Cmd% org.apache.axis.wsdl.WSDL2Java -o%Output_Path% -p%Package% SayHello.wsdl

 

銆銆鎵ц榪欎釜鎵瑰鐞嗘枃浠跺氨鍙互鐢熸垚client stub.

銆銆鐢熸垚鐨剆tub client鏂囦歡鍒楄〃涓猴細(xì)SayHello.java錛孲ayHelloService.java錛孲ayHelloServiceLocator.java錛孲ayHelloSoapBindingStub.java .

銆銆5銆佺紪鍐欏鎴風(fēng)紼嬪簭錛岀紪璇戝茍鎵ц

銆銆涓嬮潰鏄竴孌礿unit嫻嬭瘯瀹㈡埛绔唬鐮併?/p>

import java.net.URL;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

public class TestWSClient extends TestCase {

    
public TestWSClient(String string) {
        
super(string);
    }

    
public void testSayHelloClient() throws Exception {

        SayHelloService service 
= new SayHelloServiceLocator();
        SayHello_PortType client 
= service.getSayHello() ;
        String retValue 
= client.getName("jack");
        assertEquals(
"hello jack", retValue);

    }
}

    涓夈丼OAP鐩戞帶

SOAP Monitor allows for the monitoring of SOAP requests and responses via a web browser with Java plug-in 1.3 or higher. For a more comprehensive explanation of its usage, read Using the SOAP Monitor in the User's Guide.

By default, the SOAP Monitor is not enabled. The basic steps for enabling it are compiling the SOAP Monitor java applet, deploying the SOAP Monitor web service and adding request and response flow definitions for each monitored web service. In more detail:

  1. Go to $AXIS_HOME/webapps/axis (or %AXIS_HOME%"webapps"axis) and compile SOAPMonitorApplet.java.
    On Windows
    javac -classpath %AXIS_HOME%"lib"axis.jar SOAPMonitorApplet.java


    On Unix
    javac -classpath $AXIS_HOME/lib/axis.jar SOAPMonitorApplet.java

    Copy all resulting class files (i.e. SOAPMonitorApplet*.class) to the root directory of the web application using the SOAP Monitor (e.g. .../tomcat/webapps/axis) 榪欎竴姝xis鍋氬ソ浜嗭紝涓嶉渶瑕乧opy浜嗐?/li>
  2. Deploy the SOAPMonitorService web service with the admin client and the deploy-monitor.wsdd file (shown below).
    Go to the directory deploy-monitor.wsdd is located and execute the command below. The command assume that /axis is the intended web application and it is available on port 8080.
    On Windows
    java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy-monitor.wsdd
     
    On UNIX

    java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient
    -lhttp://localhost:8080/axis/services/AdminService deploy-monitor.wsdd
    SOAPMonitorService Deployment Descriptor (deploy-monitor.wsdd)
    <deployment xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java
    ="http://xml.apache.org/axis/wsdd/providers/java">
    <handler name="soapmonitor"
     type
    ="java:org.apache.axis.handlers.SOAPMonitorHandler">
     
    <parameter name="wsdlURL"
     value
    ="/axis/SOAPMonitorService-impl.wsdl"/>
     
    <parameter name="namespace"
     value
    ="http://tempuri.org/wsdl/2001/12/SOAPMonitorService-impl.wsdl"/>
    <parameter name="serviceName" value="SOAPMonitorService"/>
    <parameter name="portName" value="Demo"/>
    </handler>
    <service name="SOAPMonitorService" provider="java:RPC">
    <parameter name="allowedMethods" value="publishMessage"/>
    <parameter name="className"
     value
    ="org.apache.axis.monitor.SOAPMonitorService"/>
    <parameter name="scope" value="Application"/>
     
    </service>
     
    </deployment> 
  3. For each service that is to be monitored, add request and response flow definitions to the service's deployment descriptor and deploy (or redeploy) the service. The requestFlow and responseFlow definitions follow the start tag of the <service> element. If a service is already deployed, undeploy it and deploy it with the modified deployment descriptor. An example is shown below:
    ...

    <service name="xmltoday-delayed-quotes" provider="java:RPC">
    <requestFlow>
    <handler type="soapmonitor"/>
    </requestFlow>
    <responseFlow>
    <handler type="soapmonitor"/>
    </responseFlow>
    ...
  4. With a web browser, go to http[s]://host[:port][/webapp]/SOAPMonitor (e.g. http://localhost:8080/axis/SOAPMonitor) substituting the correct values for your web application. This will show the SOAP Monitor applet for viewing service requests and responses. Any requests to services that have been configured and deployed correctly should show up in the applet.榪涜涓婇潰鐨勬祴璇曠殑鏃跺欙紝灝卞彲浠ョ湅鍒皉equest鍜宺esponse鐨勫唴瀹廣?/li>

    鍥涖佽嚜瀹氫箟綾誨瀷

    濡傛灉榪斿洖綾誨瀷涓轟竴涓嚜瀹氫箟綾誨瀷錛?/strong>

 

   import test.Person;

     
public class SayHello {
         
public Person getName(String name, int age) {
            
return new Person(name,age);
         }
     }

     
public class Person{
    
private String name;
    
private int age;
    
    
public Person(String name, int age) {
        
this.name = name;
        
this.age = age;
    }
    
public String getName() {
        
return name;
    }
    
public void setName(String name) {
        
this.name = name;
    }
    
public int getAge() {
        
return age;
    }
    
public void setAge(int age) {
        
this.age = age;
    }
        
}

 

    閭d箞鍦ㄥ彂甯冪殑鏃跺欙紝灝遍渶瑕佸湪鍙戝竷鏂囦歡涓寚鏄庯細(xì)

   

<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 
<service name="SayHello" provider="java:RPC">
  
<requestFlow>
      
<handler type="soapmonitor"/>
    
</requestFlow>
    
<responseFlow>
      
<handler type="soapmonitor"/>
    
</responseFlow>
  
<parameter name="className" value="SayHello"/>
  
<parameter name="allowedMethods" value="*"/>
 
</service>
  
<beanMapping qname="myNS:Person" xmlns:myNS="urn:SayHello" languageSpecificType="java:Person"/>
</deployment>

 

  鐒跺悗灝哖erson綾諱篃copy鍒板簲鐢ㄧ殑classes鏂囦歡涓嬮潰錛岀劧鍚庡皢wsdl鏂囦歡涓嬭澆涓嬫潵錛岃漿鍖栨垚java鏂囦歡錛岃繖鏍瘋皟鐢ㄧ殑鏃跺欏氨鍙互鐩存帴寰楀埌Person瀵硅薄浜嗭細(xì)

  public void testSayHelloClient() throws Exception {

        SayHelloService service 
= new SayHelloServiceLocator();
        SayHello_PortType client 
= service.getSayHello() ;
        test.Person person 
= client.getName("jack"10);
        assertEquals(
"jack", person.getName());
        assertEquals(
10, person.getAge());
    }

   浜斻丠andlers and Chains

Now let's start to explore some of the more powerful features of the Axis engine. Let's say you want to track how many times your service has been called. We've included a sample handler in the samples/log directory to do just this. To use a handler class like this, you first need to deploy the Handler itself, and then use the name that you give it in deploying a service. Here's a sample deploy.wsdd file (this is example 4 in samples/userguide):

 1 <deployment xmlns="http://xml.apache.org/axis/wsdd/"
 2 
 3 xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 4 
 5 <!-- define the logging handler configuration -->
 6 <handler name="track" type="java:samples.userguide.example4.LogHandler">
 7 <parameter name="filename" value="MyService.log"/>
 8 </handler>
 9 <!-- define the service, using the log handler we just defined -->
10 <service name="LogTestService"provider="java:RPC">
11 <requestFlow>
12 <handler type="track"/>
13 </requestFlow>
14 <parameter name="className" value="samples.userguide.example4.Service"/>
15 <parameter name="allowedMethods" value="*"/>
16 </service>
17 </deployment>

The first section defines a Handler called "track" that is implemented by the class samples.userguide.example4.LogHandler. We give this Handler an option to let it know which file to write its messages into.

Then we define a service, LogTestService, which is an RPC service just like we saw above in our first example. The difference is the <requestFlow> element inside the <service> - this indicates a set of Handlers that should be invoked when the service is invoked, before the provider. By inserting a reference to "track", we ensure that the message will be logged each time this service is invoked.



persister 2008-10-21 17:50 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 久久久久久夜精品精品免费啦| 成年大片免费高清在线看黄| 久久这里只精品99re免费| 久久久久久久亚洲精品| 白白色免费在线视频| 俄罗斯极品美女毛片免费播放| 亚洲中文字幕久久无码| 成年女人色毛片免费看| 亚洲kkk4444在线观看| 毛片免费在线播放| 国产精品亚洲专区无码唯爱网 | 西西人体44rt高清亚洲| 在线毛片片免费观看| 亚洲国产人成网站在线电影动漫| 久久精品国产这里是免费| 亚洲黄色在线观看视频| 真人做人试看60分钟免费视频| 亚洲午夜一区二区电影院| 搡女人免费视频大全| 羞羞漫画登录页面免费| 国产aⅴ无码专区亚洲av麻豆| 成在线人免费无码高潮喷水| 亚洲va久久久噜噜噜久久| 亚洲精品免费在线| 亚洲国产精品18久久久久久| 亚洲国产综合久久天堂| 日本免费在线观看| 亚洲日韩国产AV无码无码精品| 亚洲AV日韩精品一区二区三区 | 一级毛片在线播放免费| 亚洲AV人无码激艳猛片| 一二三四免费观看在线电影| 国产AV日韩A∨亚洲AV电影| 亚洲永久精品ww47| 免费a级毛片高清视频不卡| 免费看一级一级人妻片| 亚洲系列中文字幕| 又粗又黄又猛又爽大片免费| 国产精品免费AV片在线观看| 亚洲国产精品无码第一区二区三区| 亚洲精品国产日韩无码AV永久免费网|