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 di...@apache.org on 2005/12/27 05:28:51 UTC

svn commit: r359170 - in /webservices/axis2/trunk/java/modules: core/src/org/apache/axis2/deployment/ integration/ integration/test/org/apache/axis2/engine/ samples/

Author: dims
Date: Mon Dec 26 20:28:45 2005
New Revision: 359170

URL: http://svn.apache.org/viewcvs?rev=359170&view=rev
Log:
- Enable chunking by default (calculating the message length is VERY costly for big messages)
- Adding a repo for tests that need chunking disabled (interop tests?)


Added:
    webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/chunking-disabled-axis2.xml
    webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/chunking-enabled-axis2.xml
      - copied unchanged from r359135, webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/chuncking-enabled-axis2.xml
Removed:
    webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/chuncking-enabled-axis2.xml
Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/axis2.xml
    webservices/axis2/trunk/java/modules/integration/maven.xml
    webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/CharactersetEncodingTest.java
    webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLChunkedTest.java
    webservices/axis2/trunk/java/modules/samples/project.xml

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/axis2.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/axis2.xml?rev=359170&r1=359169&r2=359170&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/axis2.xml (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/axis2.xml Mon Dec 26 20:28:45 2005
@@ -79,10 +79,12 @@
     <transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"/>
     <transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
         <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+        <parameter name="Transfer-Encoding" locked="false">chunked</parameter>
     </transportSender>
     <transportSender name="https"
                      class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
         <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+        <parameter name="Transfer-Encoding" locked="false">chunked</parameter>
     </transportSender>
 
     <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport Receiver

Modified: webservices/axis2/trunk/java/modules/integration/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/maven.xml?rev=359170&r1=359169&r2=359170&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/maven.xml (original)
+++ webservices/axis2/trunk/java/modules/integration/maven.xml Mon Dec 26 20:28:45 2005
@@ -26,10 +26,15 @@
             tofile="target/test-resources/repository-client/modules/addressing.mar"/>
         <mkdir dir="target/toWar/services/"/>
 
-        <!-- Create Chuncked enabled Repository -->
-        <mkdir dir="target/test-resources/chunked-enabledRepository"/>
-        <copy file="test/org/apache/axis2/engine/chuncking-enabled-axis2.xml"
-            tofile="target/test-resources/chunked-enabledRepository/axis2.xml"/>
+        <!-- Create Chunked enabled Repository -->
+        <mkdir dir="target/test-resources/chunking-enabledRepository"/>
+        <copy file="test/org/apache/axis2/engine/chunking-enabled-axis2.xml"
+            tofile="target/test-resources/chunking-enabledRepository/axis2.xml"/>
+
+        <!-- Create Chunked disabled Repository -->
+        <mkdir dir="target/test-resources/chunking-disabledRepository"/>
+        <copy file="test/org/apache/axis2/engine/chunking-disabled-axis2.xml"
+            tofile="target/test-resources/chunking-disabledRepository/axis2.xml"/>
 
         <!-- Create Mail Client transport enabled Repository -->
         <mkdir dir="target/test-resources/mail-transport-client-enabledRepository"/>

Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/CharactersetEncodingTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/CharactersetEncodingTest.java?rev=359170&r1=359169&r2=359170&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/CharactersetEncodingTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/CharactersetEncodingTest.java Mon Dec 26 20:28:45 2005
@@ -49,7 +49,7 @@
     }
 
     protected void setUp() throws Exception {
-        UtilServer.start(Constants.TESTING_PATH + "chunked-enabledRepository");
+        UtilServer.start(Constants.TESTING_PATH + "chunking-enabledRepository");
 
         service =
                 Utils.createSimpleService(serviceName,
@@ -76,7 +76,7 @@
             payload.addChild(text);
 
             Call call = new Call(
-                    Constants.TESTING_PATH + "chunked-enabledRepository");
+                    Constants.TESTING_PATH + "chunking-enabledRepository");
             Options options = new Options();
             call.setClientOptions(options);
             options.setProperty(MessageContext.CHARACTER_SET_ENCODING, "utf-16");

Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLChunkedTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLChunkedTest.java?rev=359170&r1=359169&r2=359170&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLChunkedTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLChunkedTest.java Mon Dec 26 20:28:45 2005
@@ -39,7 +39,7 @@
 
     private AxisService service;
 
-    private static final String CLIENT_HOME = Constants.TESTING_PATH + "chunked-enabledRepository";
+    private static final String CLIENT_HOME = Constants.TESTING_PATH + "chunking-enabledRepository";
 
     public EchoRawXMLChunkedTest() {
         super(EchoRawXMLChunkedTest.class.getName());
@@ -66,7 +66,7 @@
 //    public void testEchoXMLASync() throws Exception {
 //                OMElement payload = createEnvelope();
 //
-//        org.apache.axis2.client.Call call = new org.apache.axis2.client.Call(Constants.TESTING_PATH + "chunked-enabledRepository");
+//        org.apache.axis2.client.Call call = new org.apache.axis2.client.Call(Constants.TESTING_PATH + "chunking-enabledRepository");
 //
 //        call.setTo(targetEPR);
 //        call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);

Added: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/chunking-disabled-axis2.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/chunking-disabled-axis2.xml?rev=359170&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/chunking-disabled-axis2.xml (added)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/chunking-disabled-axis2.xml Mon Dec 26 20:28:45 2005
@@ -0,0 +1,164 @@
+<axisconfig name="AxisJava2.0">
+    <!-- ================================================= -->
+    <!-- Parameters -->
+    <!-- ================================================= -->
+    <parameter name="hotdeployment" locked="false">true</parameter>
+    <parameter name="hotupdate" locked="false">false</parameter>
+    <parameter name="enableMTOM" locked="false">true</parameter>
+    <!-- Uncomment this to enable REST support -->
+    <!--    <parameter name="enableREST" locked="false">true</parameter>-->
+
+
+    <parameter name="userName" locked="false">admin</parameter>
+    <parameter name="password" locked="false">axis2</parameter>
+
+    <parameter name="seralizeLocation" locked="false">.</parameter>
+    <hostConfiguration>
+        <ip>127.0.0.1</ip>
+        <port>5555</port>
+    </hostConfiguration>
+
+
+    <!--if you want to extract the service archive file and work with that please uncomment this-->
+    <!--else , it wont extract archive file or does not take into consideration if someone drop-->
+    <!--exploded directory into /service directory-->
+    <!--<parameter name="extractServiceArchive" locked="false">true</parameter>-->
+
+
+    <!--    The way of adding listener to the system-->
+    <!--    <listener class="org.apache.axis2.ObserverIMPL">-->
+    <!--        <parameter name="RSS_URL" locked="false">http://127.0.0.1/rss</parameter>-->
+    <!--    </listener>-->
+
+    <!-- ================================================= -->
+    <!-- Message Receivers -->
+    <!-- ================================================= -->
+    <!--This is the Deafult Message Receiver for the system , if you want to have MessageReceivers for -->
+    <!--all the other MEP implement it and add the correct entry to here , so that you can refer from-->
+    <!--any operation -->
+    <!--Note : You can ovride this for particular service by adding the same element with your requirement-->
+    <messageReceivers>
+        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
+                         class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
+        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
+                         class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+    </messageReceivers>
+    <!-- ================================================= -->
+    <!-- Transport Ins -->
+    <!-- ================================================= -->
+    <transportReceiver name="http" class="org.apache.axis2.transport.http.SimpleHTTPServer">
+        <parameter name="port" locked="false">6060</parameter>
+    </transportReceiver>
+
+    <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport Receiver
+    <transportReceiver name="mail" class="org.apache.axis2.transport.mail.SimpleMailListener">
+          <parameter name="transport.mail.pop3.host" locked="false">127.0.0.1</parameter>
+          <parameter name="transport.mail.pop3.user" locked="false">axis2</parameter>
+          <parameter name="transport.mail.pop3.password" locked="false">axis2</parameter>
+          <parameter name="transport.mail.pop3.port" locked="false">110</parameter>
+          <parameter name="transport.mail.replyToAddress" locked="false">axis2@127.0.0.1</parameter>
+      </transportReceiver> -->
+
+    <transportReceiver name="tcp" class="org.apache.axis2.transport.tcp.TCPServer">
+        <parameter name="port" locked="false">6060</parameter>
+    </transportReceiver>
+
+    <transportReceiver name="jms" class="org.apache.axis2.transport.jms.SimpleJMSListener">
+        <parameter name="transport.jms.Destination" locked="false">dynamicQueues/FOO</parameter>
+        <parameter name="java.naming.factory.initial" locked="false">
+            org.activemq.jndi.ActiveMQInitialContextFactory</parameter>
+        <parameter name="java.naming.provider.url" locked="false">tcp://localhost:61616</parameter>
+    </transportReceiver>
+
+    <!-- ================================================= -->
+    <!-- Transport Outs -->
+    <!-- ================================================= -->
+
+    <transportSender name="tcp" class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
+    <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
+    <transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"/>
+    <transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+    </transportSender>
+    <transportSender name="https"
+                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+    </transportSender>
+
+    <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport Receiver
+   <transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
+       <parameter name="transport.mail.smtp.host" locked="false">127.0.0.1</parameter>
+       <parameter name="transport.mail.smtp.user" locked="false">axis2</parameter>
+       <parameter name="transport.mail.smtp.password" locked="false">axis2</parameter>
+       <parameter name="transport.mail.smtp.port" locked="false">25</parameter>
+   </transportSender>
+   -->
+
+    <!-- ================================================= -->
+    <!-- Global Modules  -->
+    <!-- ================================================= -->
+    <!-- Comment this to disable Addressing -->
+    <module ref="addressing"/>
+
+
+    <!--Configuring module , providing parameters for modules whether they refer or not-->
+    <!--<moduleConfig name="addressing">-->
+    <!--<parameter name="addressingPara" locked="false">N/A</parameter>-->
+    <!--</moduleConfig>-->
+
+    <!-- ================================================= -->
+    <!-- Phases  -->
+    <!-- ================================================= -->
+    <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"/>
+    </phaseOrder>
+    <phaseOrder type="outflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+        <!--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"/>
+    </phaseOrder>
+    <phaseOrder type="Outfaultflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+    </phaseOrder>
+</axisconfig>
+

Modified: webservices/axis2/trunk/java/modules/samples/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/project.xml?rev=359170&r1=359169&r2=359170&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/project.xml (original)
+++ webservices/axis2/trunk/java/modules/samples/project.xml Mon Dec 26 20:28:45 2005
@@ -227,34 +227,7 @@
                 <exclude>**/*Abstract*.java</exclude>
                 <exclude>**/*Util*.java</exclude>
                 <exclude>**/*InteropStubTest.java</exclude>
-                <!-- <exclude>**/*EchoRawXMLChunckedTest.java</exclude> -->
                 <exclude>**org/apache/axis2/mail/*.java</exclude>
-                 
-                
-                
-                <!--
-                <exclude>**/*EchoRawMTOMTest.java</exclude>
-                <exclude>**/*EchoRawMTOMLoadTest.java</exclude>
-                <exclude>**/*EchoRawMTOMToBase64Test.java</exclude>
-                
-                <exclude>**/*MTOMCommonsChunkingTest.java</exclude> 
-                <exclude>**/OneWayRawXMLTest.java</exclude>
-               
-                -->
-         
-                <!--
-         		<exclude>**/*SOAP12Test.java</exclude>
-                <exclude>**/*SOAP12TestWithFaults.java</exclude>
-                <exclude>**/*FaultHandlingTest.java</exclude>
-                
-
-               <exclude>**/*MailEchoRawXMLTest.java</exclude>
-                <exclude>**/*MailOneWayRawXMLTest.java</exclude>
-                <exclude>**/*MailRequestResponseRawXMLTest.java</exclude>
-                <exclude>**/*CommonsHTTPEchoRawXMLTest.java</exclude>
-                <exclude>**/*EchoRawMTOMTest.java</exclude>
-                <exclude>**/*EchoRawMTOMLoadTest.java</exclude>
-                <exclude>**/*EchoRawMTOMToBase64Test.java</exclude>  -->
             </excludes>
             <includes>
                 <include>**/*Test.java</include>



Re: svn commit: r359170 - in /webservices/axis2/trunk/java/modules: core/src/org/apache/axis2/deployment/ integration/ integration/test/org/apache/axis2/engine/ samples/

Posted by Davanum Srinivas <da...@gmail.com>.
Yes, this was for HTTP1.1 only.

thanks,
dims

On 12/30/05, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
> On Tue, 2005-12-27 at 04:28 +0000, dims@apache.org wrote:
> > Author: dims
> > Date: Mon Dec 26 20:28:45 2005
> > New Revision: 359170
> >
> > URL: http://svn.apache.org/viewcvs?rev=359170&view=rev
> > Log:
> > - Enable chunking by default (calculating the message length is VERY costly for big messages)
>
> It should be on by default for HTTP 1.1 only. For 1.0 its chunking
> should not be on by default unless explicitly requested. (And that'd be
> a funny HTTP 1.0 client.)
>
> Sanjiva.
>
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

Re: svn commit: r359170 - in /webservices/axis2/trunk/java/modules: core/src/org/apache/axis2/deployment/ integration/ integration/test/org/apache/axis2/engine/ samples/

Posted by Davanum Srinivas <da...@gmail.com>.
Yes, this was for HTTP1.1 only.

thanks,
dims

On 12/30/05, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
> On Tue, 2005-12-27 at 04:28 +0000, dims@apache.org wrote:
> > Author: dims
> > Date: Mon Dec 26 20:28:45 2005
> > New Revision: 359170
> >
> > URL: http://svn.apache.org/viewcvs?rev=359170&view=rev
> > Log:
> > - Enable chunking by default (calculating the message length is VERY costly for big messages)
>
> It should be on by default for HTTP 1.1 only. For 1.0 its chunking
> should not be on by default unless explicitly requested. (And that'd be
> a funny HTTP 1.0 client.)
>
> Sanjiva.
>
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

Re: svn commit: r359170 - in /webservices/axis2/trunk/java/modules: core/src/org/apache/axis2/deployment/ integration/ integration/test/org/apache/axis2/engine/ samples/

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Tue, 2005-12-27 at 04:28 +0000, dims@apache.org wrote:
> Author: dims
> Date: Mon Dec 26 20:28:45 2005
> New Revision: 359170
> 
> URL: http://svn.apache.org/viewcvs?rev=359170&view=rev
> Log:
> - Enable chunking by default (calculating the message length is VERY costly for big messages)

It should be on by default for HTTP 1.1 only. For 1.0 its chunking
should not be on by default unless explicitly requested. (And that'd be
a funny HTTP 1.0 client.)

Sanjiva.



Re: svn commit: r359170 - in /webservices/axis2/trunk/java/modules: core/src/org/apache/axis2/deployment/ integration/ integration/test/org/apache/axis2/engine/ samples/

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Tue, 2005-12-27 at 04:28 +0000, dims@apache.org wrote:
> Author: dims
> Date: Mon Dec 26 20:28:45 2005
> New Revision: 359170
> 
> URL: http://svn.apache.org/viewcvs?rev=359170&view=rev
> Log:
> - Enable chunking by default (calculating the message length is VERY costly for big messages)

It should be on by default for HTTP 1.1 only. For 1.0 its chunking
should not be on by default unless explicitly requested. (And that'd be
a funny HTTP 1.0 client.)

Sanjiva.