You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/01/09 08:38:28 UTC
svn commit: r367236 - /webservices/axis2/trunk/java/xdocs/0_94/userguide.html
Author: saminda
Date: Sun Jan 8 23:38:23 2006
New Revision: 367236
URL: http://svn.apache.org/viewcvs?rev=367236&view=rev
Log:
Updated userguide
Modified:
webservices/axis2/trunk/java/xdocs/0_94/userguide.html
Modified: webservices/axis2/trunk/java/xdocs/0_94/userguide.html
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/xdocs/0_94/userguide.html?rev=367236&r1=367235&r2=367236&view=diff
==============================================================================
--- webservices/axis2/trunk/java/xdocs/0_94/userguide.html (original)
+++ webservices/axis2/trunk/java/xdocs/0_94/userguide.html Sun Jan 8 23:38:23 2006
@@ -1,11 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
-<head>
- <meta http-equiv="content-type" content="text/html; charset=windows-1252">
+<head>
<title>Axis2 User's Guide</title>
- <meta name="CREATED" content="20050918;20224042">
- <meta name="CHANGEDBY" content="Chamikara Jayalath">
- <meta name="CHANGED" content="20050919;1140420">
</head>
<body lang="en-US" dir="ltr">
@@ -922,7 +918,7 @@
<p>The invocation accepts a callback object as a parameter. Axis2 client API
provides an abstract Callback with the following methods:</p>
<pre>public abstract void onComplete(AsyncResult result);
-public abstract void reportError(Exception e);
+public abstract void onError(Exception e);
public boolean isComplete() {}</pre>
<p>The user is expected to implement the "onComplete " and "reportError "
@@ -995,7 +991,7 @@
}
}
- public void reportError(Exception e) {
+ public void onError(Exception e) {
e.printStackTrace();
}
};
@@ -1319,7 +1315,8 @@
runs.</p>
<pre><handler name="InFlowLogHandler" class="userguide.loggingmodule.LogHandler">
<order phase="loggingPhase" />
-</handler></pre>
+</handler></pre>
+<p>To learn more on Phase rules, click on <a href="http://www.developer.com/java/web/article.php/3529321" target="_blank">here</a></p>
<h4><a name="step4loggingmodule">Step 4: Modify the "axis2.xml"</a></h4>
@@ -1332,33 +1329,65 @@
an extract of the phase section of the "axis2.xml".</p>
<pre><!-- ================================================= -->
<!-- Phases -->
-<!-- ================================================= -->
-<phaseOrder type="inflow">
-<!-- System pre defined phases -->
- <phase name="TransportIn"/>
- <phase name="PreDispatch"/>
- <phase name="Dispatch"/>
- <phase name="PostDispatch"/>
-<!-- System pre defined phases -->
-
-<!-- After Postdispatch phase module author or or service author can add any phase he want -->
- <phase name="<font color="#33cc00">loggingPhase</font>"/>
-</phaseOrder>
-
-<phaseOrder type="outflow">
-<!-- user can add his own phases to this area -->
- <phase name="<font color="#33cc00">loggingPhase</font>"/>
-</phaseOrder>
-
-<phaseOrder type="INfaultflow">
-<!-- user can add his own phases to this area -->
- <phase name="<font color="#33cc00">loggingPhase</font>"/>
-</phaseOrder>
-
-<phaseOrder type="Outfaultflow">
-<!-- user can add his own phases to this area -->
- <phase name="<font color="#33cc00">loggingPhase</font>"/>
-</phaseOrder></pre>
+<!-- ================================================= -->
+
+<phaseOrder type="inflow">
+ <!-- System pre defined phases -->
+ <phase name="TransportIn"/>
+ <phase name="PreDispatch"/>
+ <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
+ <handler name="AddressingBasedDispatcher"
+ class="org.apache.axis2.engine.AddressingBasedDispatcher">
+ <order phase="Dispatch"/>
+ </handler>
+
+ <handler name="RequestURIBasedDispatcher"
+ class="org.apache.axis2.engine.RequestURIBasedDispatcher">
+ <order phase="Dispatch"/>
+ </handler>
+
+ <handler name="SOAPActionBasedDispatcher"
+ class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
+ <order phase="Dispatch"/>
+ </handler>
+
+ <handler name="SOAPMessageBodyBasedDispatcher"
+ class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
+ <order phase="Dispatch"/>
+ </handler>
+ <handler name="InstanceDispatcher"
+ class="org.apache.axis2.engine.InstanceDispatcher">
+ <order phase="PostDispatch"/>
+ </handler>
+ </phase>
+ <!-- System pre defined phases -->
+ <!-- After Postdispatch phase module author or or service author can add any phase he want -->
+ <phase name="userphase1"/>
+ <phase name="<font color="#33cc00">loggingPhase</font>"/>
+ </phaseOrder>
+ <phaseOrder type="outflow">
+ <!-- user can add his own phases to this area -->
+ <phase name="userphase1"/>
+ <phase name="<font color="#33cc00">loggingPhase</font>"/>
+ <!--system predefined phase-->
+ <!--these phase will run irrespective of the service-->
+ <phase name="PolicyDetermination"/>
+ <phase name="MessageOut"/>
+ </phaseOrder/>
+ <phaseOrder type="INfaultflow">
+ <!-- user can add his own phases to this area -->
+ <phase name="userphase1"/>
+ <phase name="<font color="#33cc00">loggingPhase</font>"/>
+ </phaseOrder>
+ <phaseOrder type="Outfaultflow">
+ <!-- user can add his own phases to this area -->
+ <phase name="userphase1"/>
+ <phase name="<font color="#33cc00">loggingPhase</font>"/>
+ <phase name="PolicyDetermination"/>
+ <phase name="MessageOut"/>
+ </phaseOrder>
+
+</pre>
<p>Shown in green, the custom phase "loggingPhase" is placed in all the
flows, hence that phase will be called in all the message flows in the