cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1143686 - in /cxf/branches/2.4.x-fixes: ./ distribution/src/main/release/samples/js_browser_client_simple/README.txt
Date Thu, 07 Jul 2011 07:27:09 GMT
Author: ffang
Date: Thu Jul  7 07:27:08 2011
New Revision: 1143686

URL: http://svn.apache.org/viewvc?rev=1143686&view=rev
Log:
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.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=1143686&r1=1143685&r2=1143686&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
Thu Jul  7 07:27:08 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.
+
+
+



Mime
View raw message