You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2011/07/07 09:31:42 UTC

svn commit: r1143687 - in /cxf/branches/2.3.x-fixes: ./ distribution/src/main/release/samples/js_browser_client_simple/README.txt

Author: ffang
Date: Thu Jul  7 07:31:41 2011
New Revision: 1143687

URL: http://svn.apache.org/viewvc?rev=1143687&view=rev
Log:
Merged revisions 1143686 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/branches/2.4.x-fixes

................
  r1143686 | ffang | 2011-07-07 15:27:08 +0800 (四, 07  7 2011) | 9 lines
  
  Merged revisions 1143685 via svnmerge from 
  https://svn.apache.org/repos/asf/cxf/trunk
  
  ........
    r1143685 | ffang | 2011-07-07 15:22:33 +0800 (四, 07  7 2011) | 1 line
    
    [CXF-3640]add schema validation explaination for js_browser_client_simple README
  ........
................

Modified:
    cxf/branches/2.3.x-fixes/   (props changed)
    cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/js_browser_client_simple/README.txt

Propchange: cxf/branches/2.3.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/js_browser_client_simple/README.txt
URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/js_browser_client_simple/README.txt?rev=1143687&r1=1143686&r2=1143687&view=diff
==============================================================================
--- cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/js_browser_client_simple/README.txt (original)
+++ cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/js_browser_client_simple/README.txt Thu Jul  7 07:31:41 2011
@@ -76,7 +76,7 @@ For Windows:
 
 Now compile the server applications with the commands:
 
-For UNIX:  
+For UNIX: 
   
   export CLASSPATH=$CLASSPATH:$CXF_HOME/lib/cxf-manifest.jar:./build/classes
   javac -d build/classes src/demo/hw/server/*.java
@@ -127,3 +127,25 @@ 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
+----------------------------
+When run the client with mvn -Pclient, we can get some exception 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
+            <simpleType name="MyStringType">
+                <restriction base="string">
+                    <maxLength value="30" />
+                </restriction>
+            </simpleType>
+for greetMe request message,
+and we also enable the schema validation in cxf.xml
+            <jaxws:properties>
+                <entry key="schema-validation-enabled" value="true" />
+            </jaxws:properties>
+so if the greetMe request length is bigger than 30 character, we will see
+this exception.
+
+
+