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:22:34 UTC

svn commit: r1143685 - /cxf/trunk/distribution/src/main/release/samples/js_browser_client_simple/README.txt

Author: ffang
Date: Thu Jul  7 07:22:33 2011
New Revision: 1143685

URL: http://svn.apache.org/viewvc?rev=1143685&view=rev
Log:
[CXF-3640]add schema validation explaination for js_browser_client_simple README

Modified:
    cxf/trunk/distribution/src/main/release/samples/js_browser_client_simple/README.txt

Modified: cxf/trunk/distribution/src/main/release/samples/js_browser_client_simple/README.txt
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/js_browser_client_simple/README.txt?rev=1143685&r1=1143684&r2=1143685&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/js_browser_client_simple/README.txt (original)
+++ cxf/trunk/distribution/src/main/release/samples/js_browser_client_simple/README.txt Thu Jul  7 07:22:33 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.
+
+
+