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 th...@apache.org on 2006/10/05 09:07:46 UTC
svn commit: r453119 - in /webservices/axis2/trunk/java/modules/samples:
maven.xml script/mtomSample/README.txt script/mtomSample/build.xml
script/mtomSample/run.bat script/mtomSample/run.sh
Author: thilina
Date: Thu Oct 5 00:07:45 2006
New Revision: 453119
URL: http://svn.apache.org/viewvc?view=rev&rev=453119
Log:
Applying patch given at http://issues.apache.org/jira/browse/AXIS2-1300
Thanks Saliya...
Modified:
webservices/axis2/trunk/java/modules/samples/maven.xml
webservices/axis2/trunk/java/modules/samples/script/mtomSample/README.txt
webservices/axis2/trunk/java/modules/samples/script/mtomSample/build.xml
webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.bat
webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.sh
Modified: webservices/axis2/trunk/java/modules/samples/maven.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/maven.xml?view=diff&rev=453119&r1=453118&r2=453119
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/maven.xml (original)
+++ webservices/axis2/trunk/java/modules/samples/maven.xml Thu Oct 5 00:07:45 2006
@@ -223,8 +223,14 @@
<ant:copy todir="${samples.dir}/mtom">
<ant:fileset dir="script/mtomSample"/>
</ant:copy>
+ <mkdir dir="target/mtomSample/META-INF"/>
+ <ant:copy todir="target/mtomSample/META-INF">
+ <ant:fileset dir="src/sample/mtom/filetransfer/service/META-INF/">
+ <ant:include name="services.xml"/>
+ </ant:fileset>
+ </ant:copy>
<jar destfile="${samples.dir}/mtom/mtomSample.aar">
- <fileset dir="src/sample/mtom/filetransfer/service/">
+ <fileset dir="target/mtomSample/">
<include name="META-INF/**"/>
</fileset>
<fileset dir="target/classes">
Modified: webservices/axis2/trunk/java/modules/samples/script/mtomSample/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/script/mtomSample/README.txt?view=diff&rev=453119&r1=453118&r2=453119
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/script/mtomSample/README.txt (original)
+++ webservices/axis2/trunk/java/modules/samples/script/mtomSample/README.txt Thu Oct 5 00:07:45 2006
@@ -5,13 +5,18 @@
---------
This sample provides the capabilities and power of MTOM support of AXIOM.
-In this sample a jpg image is send to a service, which will eventually save
-it according to the location the user provided.
+In this sample the user can send multiple files to the MTOM sample service, which will save them
+on the server or echo them depending on the selected operation (i.e. send or send & receive). Echoing would
+result the files to be saved on the client side.
+
+The option of file caching can be used when echoing a larger amount amount of data which could result in
+memory overflows. This will first save the echoed data in the local machine and then process them avoiding
+too much memory usage.
PreConditions:
--------------
-1. Run maven dist-bin on project root. The generated target/dist folder contains
+1. Run maven dist-std-bin on project root. The generated target/dist folder contains
the binary distribution. Unzip the relevant distribution to a folder of choice (this
will be referred to as AXIS2_DIST)
@@ -30,12 +35,21 @@
UI Configuration:
-----------------
-1. First browse the .jpg picture that you have to transmit.
+1. First browse a file or type the absolute path of a file that you want to transmit. Then click "Add".
+ Add more files as you needed.
-2. Give the desired location that you have to save it. for example [/usr/temp/temp.jpg]
-If everything works fine, you will get the conformation or an exception
-via a dialog box. End point reference is given. You can change it according to
-your host.
+2. Give the desired location that you want the files to be saved, for example [/usr/temp/].
+ The end point reference is given. You can change it according to your host.
+
+3. Select the transfer method either as via MTOM or SOAP with attachments. Select the operatio as either to
+ send or send & receive.
+
+4. File caching is enabled only for send & receive operation. Enter a threshold value in bytes so that files larger
+ than this will be cached. Files will be cached in the path given in the cache folder text box.
+
+5. Pressing "Execute" will perform the intended operation under given conditions. On success a message box will appear
+ informing the number of files saved.
+
Please contact axis-dev list (axis-dev@ws.apache.org) if you have any trouble running the sample.
Modified: webservices/axis2/trunk/java/modules/samples/script/mtomSample/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/script/mtomSample/build.xml?view=diff&rev=453119&r1=453118&r2=453119
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/script/mtomSample/build.xml (original)
+++ webservices/axis2/trunk/java/modules/samples/script/mtomSample/build.xml Thu Oct 5 00:07:45 2006
@@ -13,9 +13,9 @@
<path refid="mtom.classpath"/>
</path>
<target name="mtomSample">
- <java classname="sample.mtom.imagetransfer.client.MTOMClient"
+ <java classname="sample.mtom.filetransfer.client.MTOMClient"
classpathref="sample.classpath" fork="true">
<jvmarg value="-Daxis2.repo=${mainDir}"/>
</java>
</target>
-</project>
\ No newline at end of file
+</project>
Modified: webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.bat
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.bat?view=diff&rev=453119&r1=453118&r2=453119
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.bat (original)
+++ webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.bat Thu Oct 5 00:07:45 2006
@@ -1,33 +1,33 @@
-@echo of
-rem ---------------------------------------------------------------------------
-rem Start script for running the MTOM Image Transfer Service
-rem
-rem ---------------------------------------------------------------------------
-rem store the current directory
-set CURRENT_DIR=%cd%
-rem check the AXIS2_HOME environment variable
-if not "%AXIS2_HOME%" == "" goto gotHome
-rem guess the home. Jump two directories up and take that as the home
-cd ..
-cd ..
-set AXIS2_HOME=%cd%
-
-:gotHome
-if EXIST "%AXIS2_HOME%\lib\axis2*.jar" goto okHome
-echo The AXIS2_HOME environment variable seems not to point to the correct location!
-echo This environment variable is needed to run this program
-pause
-exit
-:okHome
-rem set the classes
-cd %CURRENT_DIR%
-
-setlocal EnableDelayedExpansion
-rem loop through the libs and add them to the class path
-set AXIS2_CLASS_PATH=%AXIS2_HOME%
-FOR %%c in (%AXIS2_HOME%\lib\*.jar) DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
-set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;"%CURRENT_DIR%\mtomClient.jar"
-
-start javaw -cp %AXIS2_CLASS_PATH% -Daxis2.repo=%AXIS2_HOME% sample.mtom.imagetransfer.client.MTOMClient
-endlocal
-:end
\ No newline at end of file
+@echo of
+rem ---------------------------------------------------------------------------
+rem Start script for running the MTOM Image Transfer Service
+rem
+rem ---------------------------------------------------------------------------
+rem store the current directory
+set CURRENT_DIR=%cd%
+rem check the AXIS2_HOME environment variable
+if not "%AXIS2_HOME%" == "" goto gotHome
+rem guess the home. Jump two directories up and take that as the home
+cd ..
+cd ..
+set AXIS2_HOME=%cd%
+
+:gotHome
+if EXIST "%AXIS2_HOME%\lib\axis2*.jar" goto okHome
+echo The AXIS2_HOME environment variable seems not to point to the correct location!
+echo This environment variable is needed to run this program
+pause
+exit
+:okHome
+rem set the classes
+cd %CURRENT_DIR%
+
+setlocal EnableDelayedExpansion
+rem loop through the libs and add them to the class path
+set AXIS2_CLASS_PATH=%AXIS2_HOME%
+FOR %%c in (%AXIS2_HOME%\lib\*.jar) DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
+set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;"%CURRENT_DIR%\mtomClient.jar"
+
+start javaw -cp %AXIS2_CLASS_PATH% -Daxis2.repo=%AXIS2_HOME% sample.mtom.filetransfer.client.MTOMClient
+endlocal
+:end
Modified: webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.sh
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.sh?view=diff&rev=453119&r1=453118&r2=453119
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.sh (original)
+++ webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.sh Thu Oct 5 00:07:45 2006
@@ -9,5 +9,5 @@
export AXIS2_CLASSPATH
echo classpath: $AXIS2_CLASSPATH
-java -classpath $AXIS2_CLASSPATH -Daxis2.repo=$AXIS2_HOME sample.mtom.imagetransfer.client.MTOMClient &
+java -classpath $AXIS2_CLASSPATH -Daxis2.repo=$AXIS2_HOME sample.mtom.filetransfer.client.MTOMClient &
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org