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/09 09:03:11 UTC

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

Author: ffang
Date: Sat Jul  9 07:03:11 2011
New Revision: 1144610

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

................
  r1144607 | ffang | 2011-07-09 14:46:45 +0800 (六, 09  7 2011) | 9 lines
  
  Merged revisions 1144605 via svnmerge from 
  https://svn.apache.org/repos/asf/cxf/trunk
  
  ........
    r1144605 | ffang | 2011-07-09 14:34:02 +0800 (六, 09  7 2011) | 1 line
    
    [CXF-3647]Add schema validation explaination for samples/wsdl_first_xmlbeans README
  ........
................

Modified:
    cxf/branches/2.3.x-fixes/   (props changed)
    cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/wsdl_first_xmlbeans/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/wsdl_first_xmlbeans/README.txt
URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/wsdl_first_xmlbeans/README.txt?rev=1144610&r1=1144609&r2=1144610&view=diff
==============================================================================
--- cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/wsdl_first_xmlbeans/README.txt (original)
+++ cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/wsdl_first_xmlbeans/README.txt Sat Jul  9 07:03:11 2011
@@ -190,3 +190,24 @@ you can use 
 
 to invoke the service with simple HttpURLConnection, or you can even
 use your favorite browser to get the results back.
+
+Schema Validation Exception
+----------------------------
+When running the client with mvn -Pclient, you may see exceptions like
+org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: string length (67) 
+is greater than maxLength facet (30) for MyStringType in namespace 
+http://apache.org/hello_world_soap_http/types
+This is to be expected because in the wsdl we include restrictions such as
+            <simpleType name="MyStringType">
+                <restriction base="string">
+                    <maxLength value="30" />
+                </restriction>
+            </simpleType>
+for the greetMe request message,
+and we're also enabling schema validation in our cxf.xml
+            <jaxws:properties>
+                <entry key="schema-validation-enabled" value="true" />
+            </jaxws:properties>
+so if the greetMe request length is bigger than 30 characters, we will see
+this exception.
+