You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by gm...@apache.org on 2007/10/23 23:20:41 UTC
svn commit: r587657 -
/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java
Author: gmazza
Date: Tue Oct 23 14:20:40 2007
New Revision: 587657
URL: http://svn.apache.org/viewvc?rev=587657&view=rev
Log:
Clean up output messages.
Modified:
incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java
Modified: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java?rev=587657&r1=587656&r2=587657&view=diff
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java (original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java Tue Oct 23 14:20:40 2007
@@ -52,7 +52,7 @@
Client client = new Client();
if (args.length == 0) {
- System.out.println("please specify wsdl");
+ System.out.println("Please specify the WSDL file.");
System.exit(1);
}
URL wsdlURL;
@@ -77,21 +77,21 @@
}
Holder<byte[]> param = new Holder<byte[]>();
param.value = new byte[(int) fileSize];
- System.out.println("Start test without Mtom enable!");
- System.out.println("Sending out the me.bmp Image content to server, data size is " + fileSize);
+ System.out.println("Start test without MTOM enabled:");
+ System.out.println("Sending out the me.bmp image content to server, data size is " + fileSize);
InputStream in = client.getClass().getResourceAsStream("me.bmp");
in.read(param.value);
Holder<String> name = new Holder<String>("call detail");
port.testXop(name, param);
- System.out.println("received byte[] back from server, the size is " + param.value.length);
+ System.out.println("Received byte[] back from server, returned size is " + param.value.length);
Image image = ImageIO.read(new ByteArrayInputStream(param.value));
- System.out.println("build image with the returned byte[] back from server successfully, hashCode="
+ System.out.println("Build image with the returned byte[] back from server successfully, hashCode="
+ image.hashCode());
- System.out.println("Successfully run demo without mtom enable");
+ System.out.println("Successfully ran demo without MTOM enabled");
- System.out.println("Start test with Mtom enable!");
+ System.out.println("Start test with MTOM enabled:");
System.out.println("Sending out the me.bmp Image content to server, data size is " + fileSize);
Holder<DataHandler> handler = new Holder<DataHandler>();
byte[] data = new byte[(int) fileSize];
@@ -105,8 +105,8 @@
fileSize++;
}
- System.out.println("received DataHandler back from server, the size is " + fileSize);
- System.out.println("Successfully run demo with mtom enable");
+ System.out.println("Received DataHandler back from server, returned size is " + fileSize);
+ System.out.println("Successfully ran demo with MTOM enabled");
System.exit(0);
}