Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9B4F662C1 for ; Fri, 8 Jul 2011 03:16:03 +0000 (UTC) Received: (qmail 79235 invoked by uid 500); 8 Jul 2011 03:16:03 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 79117 invoked by uid 500); 8 Jul 2011 03:15:59 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 79110 invoked by uid 99); 8 Jul 2011 03:15:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 03:15:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 03:15:56 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D8AB52388906 for ; Fri, 8 Jul 2011 03:15:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1144138 - in /cxf/branches/2.4.x-fixes: ./ distribution/src/main/release/samples/js_browser_client_simple/README.txt distribution/src/main/release/samples/js_browser_client_simple/build.xml Date: Fri, 08 Jul 2011 03:15:36 -0000 To: commits@cxf.apache.org From: gmazza@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110708031536.D8AB52388906@eris.apache.org> Author: gmazza Date: Fri Jul 8 03:15:36 2011 New Revision: 1144138 URL: http://svn.apache.org/viewvc?rev=1144138&view=rev Log: Merged revisions 1144137 via svnmerge from https://svn.apache.org/repos/asf/cxf/trunk ........ r1144137 | gmazza | 2011-07-07 23:13:26 -0400 (Thu, 07 Jul 2011) | 1 line Text clean up, Ant build file removal ........ Removed: cxf/branches/2.4.x-fixes/distribution/src/main/release/samples/js_browser_client_simple/build.xml Modified: cxf/branches/2.4.x-fixes/ (props changed) cxf/branches/2.4.x-fixes/distribution/src/main/release/samples/js_browser_client_simple/README.txt Propchange: cxf/branches/2.4.x-fixes/ ------------------------------------------------------------------------------ Binary property 'svnmerge-integrated' - no diff available. Modified: cxf/branches/2.4.x-fixes/distribution/src/main/release/samples/js_browser_client_simple/README.txt URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/distribution/src/main/release/samples/js_browser_client_simple/README.txt?rev=1144138&r1=1144137&r2=1144138&view=diff ============================================================================== --- cxf/branches/2.4.x-fixes/distribution/src/main/release/samples/js_browser_client_simple/README.txt (original) +++ cxf/branches/2.4.x-fixes/distribution/src/main/release/samples/js_browser_client_simple/README.txt Fri Jul 8 03:15:36 2011 @@ -1,8 +1,7 @@ JavaScript Client Demo using Document/Literal Style -============================================= - +=================================================== This demo illustrates the use of the JavaScript client generator. This -demo deploys the a service based on the wsdl_first demo, and then +demo deploys a service based on the wsdl_first demo, and then provides a browser-compatible client that communicates with it. Please read the README.txt for the wsdl_first sample for more information on the service. @@ -17,34 +16,17 @@ JavaScript client feature. Prerequisite ------------ - If your environment already includes cxf-manifest.jar on the -CLASSPATH, and the JDK and ant bin directories on the PATH -it is not necessary to set the environment as described in +CLASSPATH, and the JDK directories on the PATH it is not +necessary to set the environment variables as described in the samples directory README. If your environment is not properly configured, or if you are planning on using wsdl2java, javac, and java to build and run the demos, you must set the -environment. +environment variables. -Building and running the demo using Ant ---------------------------------------- -From the base directory of this sample (i.e., where this README file is -located), the Ant build.xml file can be used to build and run the -server for the demo. - -Using either UNIX or Windows: - - ant server (from one command line window) - - -To remove the code generated from the WSDL file and the .class -files, run "ant clean". - - -Building and running the demo using maven ---------------------------------------- - +Building and running the demo using Maven +----------------------------------------- From the base directory of this sample (i.e., where this README file is located) @@ -109,14 +91,11 @@ On Windows, a new command windows opens client, terminate the server process by issuing Ctrl-C in its command window. To remove the code generated from the WSDL file and the .class -files, either delete the build directory and its contents or run: - - ant clean +files, just delete the build directory and its contents. Running the client in a browser ------------------------------- - Once the server is running, browse to: http://HOSTNAME:9000/HelloWorld.html @@ -127,24 +106,24 @@ On the web page you see, click on the 'i very simple sayHi service, which takes no input and returns a single string. -Schema Validateion Exception +Schema Validation Exception ---------------------------- -When run the client with mvn -Pclient, we can get some exception like +When running the client with mvn -Pclient, you may see exceptions like Marshalling Error: cvc-maxLength-valid: Value 'Invoking greetMe with invalid length string, expecting exception...' with length = '67' is not facet-valid with respect to maxLength '30' for type 'MyStringType'. -This is expected, as in the wsdl we have restriction like +This is to be expected because in the wsdl we include restrictions such as -for greetMe request message, -and we also enable the schema validation in cxf.xml +for the greetMe request message, +and we're also enabling schema validation in our cxf.xml -so if the greetMe request length is bigger than 30 character, we will see +so if the greetMe request length is bigger than 30 characters, we will see this exception.