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/29 10:40:13 UTC
svn commit: r468859 - in
/webservices/axis2/branches/java/1_1/modules/samples/mtom: build.xml
src/sample/mtom/client/Client.java
Author: thilina
Date: Sun Oct 29 01:40:12 2006
New Revision: 468859
URL: http://svn.apache.org/viewvc?view=rev&rev=468859
Log:
1.fixing a typo
2.Making ant build call the internal build of generated code
Modified:
webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml
webservices/axis2/branches/java/1_1/modules/samples/mtom/src/sample/mtom/client/Client.java
Modified: webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml?view=diff&rev=468859&r1=468858&r2=468859
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml Sun Oct 29 01:40:12 2006
@@ -22,7 +22,7 @@
<property name="client.dir" value="${build.dir}/client" />
<property name="service.dir" value="${build.dir}/service" />
<property name="client.classes.dir" value="${client.dir}/classes" />
- <property name="skeleton.path" value="src/sample/mtom/service/MTOMServiceSkeleton.java" />
+ <property name="skeleton.path" value="src/sample/mtom/service/MTOMSampleSkeleton.java" />
<property name="client.path" value="src/sample/mtom/client/Client.java" />
<!-- USE AXIS2_HOME FOR THIS -->
<property name="lib.dir" value="../lib" />
@@ -37,7 +37,7 @@
<target name="service">
<java classname="org.apache.axis2.wsdl.WSDL2Java">
<arg value="-uri" />
- <arg value="resources/MTOMService.wsdl" />
+ <arg value="resources/MTOMSample.wsdl" />
<arg value="-ss" />
<arg value="-sd" />
<arg value="-p" />
@@ -47,7 +47,8 @@
<classpath refid="class.path" />
</java>
<copy file="${skeleton.path}" tofile="${service.dir}/${skeleton.path}" overwrite="true" />
-
+ <ant dir="${service.dir}"/>
+ <copy file="${service.dir}/build/lib/MTOMSample.aar" tofile = "${service.dir}/MTOMSample.aar" overwrite="true"/>
</target>
<target name="check-parameters">
<condition property="parameters.set">
Modified: webservices/axis2/branches/java/1_1/modules/samples/mtom/src/sample/mtom/client/Client.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/mtom/src/sample/mtom/client/Client.java?view=diff&rev=468859&r1=468858&r2=468859
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/mtom/src/sample/mtom/client/Client.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/mtom/src/sample/mtom/client/Client.java Sun Oct 29 01:40:12 2006
@@ -76,16 +76,20 @@
public static void transferFile(File file, String destination)
throws RemoteException {
// uncomment the following if you need to capture the messages from
- // TCPMON. Please look at http://ws.apache.org/commons/tcpmon/tcpmontutorial.html
+ // TCPMON. Please look at
+ // http://ws.apache.org/commons/tcpmon/tcpmontutorial.html
// to learn how to setup tcpmon
MTOMSampleStub serviceStub = new MTOMSampleStub(
- // "http://localhost:8081/axis2/services/MTOMSample"
+ "http://localhost:8080/axis2/rest/MTOMSample"
);
// Enable MTOM in the client side
serviceStub._getServiceClient().getOptions().setProperty(
Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
+ serviceStub._getServiceClient().getOptions().setProperty(
+ Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE);
+
// Uncomment and fill the following if you want to have client side file
// caching switched ON.
/*
@@ -104,6 +108,7 @@
// Creating a javax.activation.FileDataSource from the input file.
FileDataSource fileDataSource = new FileDataSource(file);
+
// Create a dataHandler using the fileDataSource. Any implementation of
// javax.activation.DataSource interface can fit here.
DataHandler dataHandler = new DataHandler(fileDataSource);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org