Author: isuru
Date: Tue Jan 27 04:59:15 2009
New Revision: 29643
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=29643

Log:
Adding MTOM guide


Added:
   trunk/wsas/java/modules/distribution/src/site/xdoc/mtom_sample_guide.xml

Added: trunk/wsas/java/modules/distribution/src/site/xdoc/mtom_sample_guide.xml
URL: 
http://wso2.org/svn/browse/wso2/trunk/wsas/java/modules/distribution/src/site/xdoc/mtom_sample_guide.xml?pathrev=29643
==============================================================================
--- (empty file)
+++ trunk/wsas/java/modules/distribution/src/site/xdoc/mtom_sample_guide.xml    
Tue Jan 27 04:59:15 2009
@@ -0,0 +1,55 @@
+<!--
+  ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml";>
+<body>
+<h1>MTOM (Message Transmission Optimization Mechanism)</h1>
+
+<h2>INTRODUCTION</h2>
+
+<p> This sample demonstrates the capabilities and power of MTOM. MTOM Web 
Service accepts a
+    fileName and DataHandler. This DataHandler contains the binary content 
which will eventually save to a
+    temporary location to the given fileName. </p>
+
+<h2>Prerequisites</h2>
+
+<p>Apache Ant 1.6.2 or higher. </p>
+
+
+<h2>Running the Sample:</h2>
+<ol type="1">
+    <li>Use "ant generate.service" or just "ant" command in the 
WSO2WSAS_HOME/samples/MTOM/ to build the
+        service.
+    </li>
+    <li>Generated service (MTOMSample.aar) gets copied to the 
$WSO2WSAS_HOME/repository/services
+        automatically.
+    </li>
+    <li>Start WSAS server using $WSO2WSAS_HOME/bin/wso2wsas.sh or 
$WSO2WSAS_HOME/bin/wso2wsas.bat.</li>
+    <li>Use the script run-client.sh or run-client.bat file to invoke the 
client using arguments</li>
+
+    <p>-file {file that need to be send to the service} -fileName {name to be 
copied on server side} ex:</p>
+
+    <p>./run-client.sh -file /tmp/wwe.jpg -fileName wresting.jpg</p>
+</ol>
+<h2>Note</h2>
+
+<p>Sometimes, if you're having trouble running the client successfully,
+    It may be necessary to clean the services repository before you generate 
the service, deploy it
+    and run the client. (i.e. delete services created from previous 
samples.)</p>
+</body>
+</html>

_______________________________________________
Wsas-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev

Reply via email to