Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 58924 invoked from network); 27 Mar 2007 08:29:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Mar 2007 08:29:17 -0000 Received: (qmail 56792 invoked by uid 500); 27 Mar 2007 08:29:13 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 56758 invoked by uid 500); 27 Mar 2007 08:29:13 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 56740 invoked by uid 99); 27 Mar 2007 08:29:13 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of reneta.sall@ericsson.com designates 193.180.251.62 as permitted sender) Received: from [193.180.251.62] (HELO mailgw4.ericsson.se) (193.180.251.62) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2007 01:29:12 -0700 Received: from mailgw4.ericsson.se (unknown [127.0.0.1]) by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id 737A02156D for ; Tue, 27 Mar 2007 10:28:13 +0200 (CEST) X-AuditID: c1b4fb3e-b1a1dbb0000061ca-09-4608d59d9d20 Received: from esealmw129.eemea.ericsson.se (unknown [153.88.254.124]) by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id 5189220158 for ; Tue, 27 Mar 2007 10:28:13 +0200 (CEST) Received: from esealmw106.eemea.ericsson.se ([153.88.200.69]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Tue, 27 Mar 2007 10:21:46 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C77048.F5F042B9" Subject: Axis2 XMLBeans,JAXB validation? Date: Tue, 27 Mar 2007 10:21:46 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Axis2 XMLBeans,JAXB validation? thread-index: AcdwSPVfWUJlZM7VSF6XW/aKtAROsQ== From: =?iso-8859-1?Q?Reneta_S=E4ll_=28HF/EBC=29?= To: X-OriginalArrivalTime: 27 Mar 2007 08:21:46.0798 (UTC) FILETIME=[F5D98CE0:01C77048] X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C77048.F5F042B9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, =20 I am using Axis2 WSDL2Java and generate java classes from wsdl. In the generated java classes I can't see any validation code for = patterns maping from my schema. I tried JAXB, XMLBean as binding options.=20 =20 How can I handle validation for restrictions when using JAXB or XMLBeans = as a databinding in Axis2? Here is my schema file: Used as ID. Account = code ][1-9][0-9]{0,14})$"/> Reneta=20 ------_=_NextPart_001_01C77048.F5F042B9 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=20 all,
 
I am = using=20 Axis2  WSDL2Java and generate java classes from = wsdl.
In the = generated=20 java classes I can't  see any validation code for patterns maping = from my=20 schema.
I = tried JAXB,=20 XMLBean as binding options.
 
How = can I handle=20 validation for restrictions when using JAXB or XMLBeans as a databinding = in=20 Axis2?
Here = is my schema=20 file:

<?xml version=3D"1.0" encoding=3D"UTF-8"?>

    <xs:schema = xmlns:xs=3D"http://www.w3.org/2001/XMLSchema" = elementFormDefault=3D"qualified"=20 attributeFormDefault=3D"unqualified">

       =20 <xs:element=20 name=3D"myElement">

       &nbs= p;   =20 <xs:complexType>

       &nbs= p;       =20 <xs:sequence>

       &nbs= p;           =20 <xs:element=20 name=3D"element1" minOccurs=3D"0">

       &nbs= p;            = ;       =20 <xs:annotation>

       &nbs= p;            = ;           =20 <xs:documentation>Used as ID. Account code</xs:documentation>

       &nbs= p;            = ;       =20 </xs:annotation>

       &nbs= p;            = ;       =20 <xs:simpleType>

       &nbs= p;            = ;           =20 <xs:restriction=20 base=3D"xs:string">

       &nbs= p;            = ;            =        =20 <xs:pattern=20 value=3D"^((([1-9][0-9]{0,14},)|([1-9][0-9]{0,14}-[1-9]= [0-9]{0,14},))*([1-9][0-9]{0,14}|([1-9][0-9]{0,14}-[1-9][0-9]{0,14})))$|^= ([Aa][Ll][Ll])$|^([>][1-9][0-9]{0,14})$"/>

       &nbs= p;            = ;           </xs:restriction>

       &nbs= p;            = ;       =20 </xs:simpleType>

       &nbs= p;       =20 </xs:element>

       &nbs= p;   =20 </xs:sequence>

       =20 </xs:complexType>

    </xs:element>

    <xs:element name=3D"myElement1">

       =20 <xs:complexType>

       &nbs= p;       =20 <xs:sequence>

       &nbs= p;            = ;   =20 <xs:element=20 ref=3D"tns:myElement" minOccurs=3D"0"=20 maxOccurs=3D"4000"/>

       &nbs= p;       =20 </xs:sequence>

       =20 </xs:complexType>

    </xs:element>

</xs:schema>

Reneta

------_=_NextPart_001_01C77048.F5F042B9--