You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2005/09/17 09:09:57 UTC

svn commit: r289711 - in /webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client: MTOMClientModel.java README.txt UserInterface.java

Author: saminda
Date: Sat Sep 17 00:09:51 2005
New Revision: 289711

URL: http://svn.apache.org/viewcvs?rev=289711&view=rev
Log:
MTOM Sample and README.txt being updated to cope with current axis2 
architecture

Modified:
    webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/MTOMClientModel.java
    webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/README.txt
    webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/UserInterface.java

Modified: webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/MTOMClientModel.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/MTOMClientModel.java?rev=289711&r1=289710&r2=289711&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/MTOMClientModel.java (original)
+++ webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/MTOMClientModel.java Sat Sep 17 00:09:51 2005
@@ -38,7 +38,7 @@
 public class MTOMClientModel {
     private File inputFile = null;
 
-    private EndpointReference targetEPR = new EndpointReference("http://127.0.0.1:8080/axis2/services/MyService");
+    private EndpointReference targetEPR = new EndpointReference("http://127.0.0.1:8080/axis2/services/mtomSample");
 
     private QName operationName = new QName("mtomSample");
 

Modified: webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/README.txt
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/README.txt?rev=289711&r1=289710&r2=289711&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/README.txt (original)
+++ webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/README.txt Sat Sep 17 00:09:51 2005
@@ -1,20 +1,40 @@
+Sample for MTOM
+===============
+
+Overview:
+---------
+
 This sample provide the capabilities and power of MTOM support over AXIOM.
 In this sample a .jpg image is send to a service, which will eventually save
 it according to the location that the user providing.
 
-Sample runs as follows.
+PreConditions:
+--------------
+
+1.  Run maven dist-bin on project root. The generated target/dist folder contains
+the binary distribution. Unzip the relevant distribution and i would name the
+location as AXIS2_DIST.
+
+2.  mtomSample.aar, which is the service required for this sample can be found
+from AXIS2_DIST/samples/mtom folder. Drop it down in Tomcat's Axis2's
+services directory.[{$tomcat_home}/webapps/axis2/WEB-INF/services]
+
+Running the Sample:
+-------------------
+
+Use <ant mtomSample> command to run the sample. bulid.xml is available at
+AXIS2_DIST/samples folder. Second way is the scrip file. Use run.sh or run.bat
+to run the sample pertaining to the system you are using.
+
 
-1.  Use MTOMClient to run the Sample.
+UI Configuration:
+-----------------
+1.  First brows the .jpg picture that you have to transmit.
 
-2.  Brows for .jpg image to transfer
+2.  Give the desired location that you have to save it. for example [/usr/temp/temp.jpg]
+If the everything work fine, you will get the conformation or an exception
+via a Dialog box.  End point reference is given. You can change it according to
+you host.
 
-3.  Give the location to save the sample.
+Please contact axis-dve list if you have found any trouble running the sample
 
-4.  Before running sample, service should be present
-{$tomcat_home}/webapps/axis2/WEB-INF/services. In order to create the .aar file
-use the Service “MTOMService” which is present in the
-“sample” module's sample/mtom/ folder. Create the folder structure as mentioned
-in the Axis2-user guide.
- 
-5.  Run the sample and if everything goes well a message will be popped up
-with conformation.
\ No newline at end of file

Modified: webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/UserInterface.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/UserInterface.java?rev=289711&r1=289710&r2=289711&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/UserInterface.java (original)
+++ webservices/axis2/trunk/java/modules/samples/src/sample/mtom/imagetransfer/client/UserInterface.java Sat Sep 17 00:09:51 2005
@@ -77,7 +77,7 @@
         label.setBounds(20, 90, 200, 20);
         EPR.setBounds(150, 90, 270, 20);
 
-        EPR.setText("http://127.0.0.1:8080/axis2/services/MTOMService");
+        EPR.setText("http://127.0.0.1:8080/axis2/services/mtomSample");
 
         send.setBounds(140, 120, 150, 20);