Author: ningjiang
Date: Sat Jun 30 21:58:17 2007
New Revision: 552244
URL: http://svn.apache.org/viewvc?view=rev&rev=552244
Log:
CXF-757 applied the patch of Glen, and removed the prerequisite of downloading
the js and xmlbean jars, because we ship them in CXF distribution.
Added:
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml
(with props)
Removed:
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/logging.properties
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/run_client.bat
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/run_client.sh
Modified:
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/README.txt
incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt
Modified:
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/README.txt
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/js_client/README.txt?view=diff&rev=552244&r1=552243&r2=552244
==============================================================================
---
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/README.txt
(original)
+++
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/README.txt
Sat Jun 30 21:58:17 2007
@@ -1,24 +1,11 @@
Hello World Client Demo using JavaScript
=========================================================
+The client demo demonstrates the use of (non-browser)
+JavaScript to call a CXF server.
-The client demo demonstrates the use of the JavaScript to call CXF server
+The client side makes call by JAXWS. It uses the Mozilla Rhino library
+to read the JavaScript file and run it.
-The client side makes call by JAXWS. It use mozilla Rhino library to read
-java script file and run it.
-
-Prerequisite
-------------
-
-You should set the CXF_HOME environment to the CXF install path in
-run_client and run_client.bat files.
-
-If your environment already includes cxf-manifest-incubator.jar on the
-CLASSPATH, and the JDK and ant bin directories on the PATH.
-
-You also need to download js-1.6R5.jar from
-(http://repo1.maven.org/maven2/rhino/js/1.6R5/) and xbean-2.2.0.jar
-from (http://repo1.maven.org/maven2/xmlbeans/xbean/2.2.0/) and place
-these two jars under CXF_HOME/lib directory.
Building and running the demo server using ant
@@ -37,25 +24,22 @@
ant clean
-Running the demo using javascript
----------------------------
+Running the JavaScript client
+-----------------------------
+In another command line window, run the ant "client" target from
+the build.xml file located in the same directory as this README.
-From the samples/js_client directory run the commands, entered on a
-single command line:
-
-For UNIX (must use forward slashes):
- ./run_client.sh
-
-For Windows (may use either forward or back slashes):
- run_client.bat
+Using either UNIX or Windows:
+ ant client
-When running the client, it can terminate the server process by issuing Ctrl-C
in its command window.
+When running the client, you can terminate the server process by issuing
+Ctrl-C in its command window.
-It will show the output:
+The client will show this output:
invoke sayHi(). return Bonjour
invoke greetMe(String). return Hello Jeff
-The same time, server give the output:
+The same time, the server will give this output:
[java] Executing operation sayHi
[java] Executing operation greetMe
Added:
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml?view=auto&rev=552244
==============================================================================
---
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml
(added)
+++
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml
Sat Jun 30 21:58:17 2007
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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.
+-->
+<project name="js_client" default="all" basedir=".">
+ <property name="thirdparty.classpath"
+
value="../hello_world/build/classes;lib/js-1.6R5.jar;lib/xbean-2.2.0.jar"/>
+
+ <import file="../common_build.xml"/>
+
+ <target name="client" description="run demo client">
+ <cxfrun classname="org.mozilla.javascript.tools.shell.Main"
+ param1="src/helloworld.js"/>
+ </target>
+</project>
Propchange:
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
incubator/cxf/trunk/distribution/src/main/release/samples/js_client/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified:
incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt?view=diff&rev=552244&r1=552243&r2=552244
==============================================================================
---
incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt
(original)
+++
incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt
Sat Jun 30 21:58:17 2007
@@ -27,10 +27,6 @@
javac, and java to build and run the demos, you must set the
environment.
-You also need to download js-1.6R5.jar from
-(http://repo1.maven.org/maven2/rhino/js/1.6R5/) and xbean-2.2.0.jar
-from (http://repo1.maven.org/maven2/xmlbeans/xbean/2.2.0/) and place
-these two jars under CXF_HOME/lib directory.
Building and running the demo using ant