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 2005/12/02 11:46:52 UTC

svn commit: r351669 - /webservices/axis2/trunk/java/xdocs/http-transport.html

Author: saminda
Date: Fri Dec  2 02:46:47 2005
New Revision: 351669

URL: http://svn.apache.org/viewcvs?rev=351669&view=rev
Log:
Updated transport docs. 

Modified:
    webservices/axis2/trunk/java/xdocs/http-transport.html

Modified: webservices/axis2/trunk/java/xdocs/http-transport.html
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/xdocs/http-transport.html?rev=351669&r1=351668&r2=351669&view=diff
==============================================================================
--- webservices/axis2/trunk/java/xdocs/http-transport.html (original)
+++ webservices/axis2/trunk/java/xdocs/http-transport.html Fri Dec  2 02:46:47 2005
@@ -3,6 +3,14 @@
 <head>
   <meta content="">
   <meta content="">
+  <meta content="">
+  <meta content="">
+  <meta content="">
+  <meta content="">
+  <meta content="">
+  <meta content="">
+  <meta content="">
+  <meta content="">
   <meta http-equiv="content-type" content="">
   <title>HTTP transports</title>
 </head>
@@ -45,6 +53,27 @@
 authenticate the clients where the server has the clients' public keys in the
 its trust store.
 
+<h2>Timeout Configuraiton</h2>
+
+<p>There are two timeout exist in transport level. They are called, Socket
+timeout and Connection timeout. This can be configured in deployment time or
+in run time. In depoyment time, user has to add the following lines in
+axis2.xml.</p>
+
+<p>For Socket timoeout:</p>
+<pre>&lt;parameter name="SO_TIMEOUT" locked="false"&gt;some_int_value&lt;/parameter&gt;
+
+For Connection timeout: 
+
+&lt;parameter name="CONNECTION_TIMEOUT" locked="false"&gt;some_int_value&lt;/parameter&gt;
+
+In runtime it's set as follows in the Stub.</pre>
+<source><pre>...
+Options options = new Options();
+options.setProperty(HTTPConstants.SO_TIMEOUT,new Integer(some_int_value));
+options.setProperty(HTTPConstants.CONNECTION_TIMEOUT,new Integer(some_int_value));
+...</pre>
+</source>
 <p></p>
 
 <h2>Proxy and NTLM Authentication</h2>
@@ -58,8 +87,7 @@
 <pre>&lt;transportSender name="<b>http</b>" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender"&gt;
         &lt;parameter name="PROTOCOL" locked="false"&gt;HTTP/1.1&lt;/parameter&gt;
         &lt;parameter name="PROXY" proxy_host="proxy_host_name" proxy_port="proxy_host_port" locked="true&gt;userName:domain:passWord&lt;/parameter&gt;
-&lt;/transportSender&gt;<br>
-</pre>
+&lt;/transportSender&gt;<br></pre>
 
 <p>For a particular proxy, if authentication is not available fill
 "userName:domain:passWord"as "anonymous:anonymous:anonymous".</p>
@@ -77,8 +105,7 @@
 proxyProperties.setProxyPort(...);
 ...
 options.setProperty(HttpConstants.PROXY, proxyProperties);
-....
-</pre>
+....</pre>
 
 <p>The above code would eventually override the deployment proxy
 configuration settings.</p>