Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 23046 invoked from network); 27 Mar 2008 10:34:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Mar 2008 10:34:04 -0000 Received: (qmail 40637 invoked by uid 500); 27 Mar 2008 10:33:56 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 40491 invoked by uid 500); 27 Mar 2008 10:33:55 -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 40474 invoked by uid 99); 27 Mar 2008 10:33:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2008 03:33:55 -0700 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 (nike.apache.org: local policy) Received: from [83.243.48.71] (HELO mail3.rlp.de) (83.243.48.71) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2008 10:33:06 +0000 Received: (qmail 31318 invoked from network); 27 Mar 2008 10:33:25 -0000 Received: from unknown (10.7.98.3) by mail3.rlp.de with QMTP; 27 Mar 2008 10:33:25 -0000 Received: (qmail 24117 invoked from network); 27 Mar 2008 10:33:25 -0000 Received: from unknown (HELO mzmail1.intern.ldi.rlp) (10.68.107.55) by mail5.nic.rlp with ESMTP; 27 Mar 2008 10:33:24 -0000 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_01C88FF5.FCC5B30E" Subject: Problem with xs:pattern and IsBasicLatin Date: Thu, 27 Mar 2008 11:33:25 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem with xs:pattern and IsBasicLatin Thread-Index: AciP9fys4+SNkiPhSZ6w9xSNHRzeqg== From: "Weck, Andreas" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C88FF5.FCC5B30E Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hallo, =20 i have the following type-definition in a webservice: =20 This generates me a class ( with wsdl2java) with the method: public void setVerantwortlichePerson_type0(java.lang.String param) { if (java.lang.String.valueOf(param).matches("[\\p{IsBasicLatin}\\p{IsLatin- 1Supplement}]+")) { this.localVerantwortlichePerson_type0 =3D param; } else { throw new java.lang.RuntimeException(); } } =20 and if i run my appliction and call the method setVerantwortlichePerson_type0("Andreas") i get the following Exception: Exception in thread "main" java.util.regex.PatternSyntaxException: Unknown character property name {BasicLatin} near index 16=20 [\p{IsBasicLatin}\p{IsLatin-1Supplement}]+ ^ So what is here wrong? Can somebody help me??? Regards, Andreas =20 ------_=_NextPart_001_01C88FF5.FCC5B30E Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hallo,
 
i = have the=20 following type-definition in a webservice:
<xs:element = name=3D"VerantwortlichePerson">
   =20 <xs:simpleType>
      = <xs:restriction=20 base=3D"xs:string">
       =20 <xs:maxLength = value=3D"50"/>
       =20 <xs:minLength = value=3D"1"/>
       =20 <xs:pattern=20 value=3D"[\p{IsBasicLatin}\p{IsLatin-1Supplement}]+"/>
  =    =20 </xs:restriction>
    </xs:simpleType>
</xs:element>
 
This = generates me a=20 class ( with wsdl2java) with the method:
public void=20 setVerantwortlichePerson_type0(java.lang.String param)=20 {
        if=20 (java.lang.String.valueOf(param).matches("[\\p{IsBasicLatin}\\p{IsLatin-1= Supplement}]+"))=20 {
           =20 this.localVerantwortlichePerson_type0 =3D=20 param;
        } else=20 {
            = throw=20 new = java.lang.RuntimeException();
      &nbs= p;=20 }
    }
 
and if = i run my=20 appliction and call the method setVerantwortlichePerson_type0("Andreas") i get the following Exception:
Exception in=20 thread "main" java.util.regex.PatternSyntaxException: Unknown character = property=20 name {BasicLatin} near index 16
[\p{IsBasicLatin}\p{IsLatin-1Supplement}]+
   &nbs= p;            = ;      ^
So=20 what is here wrong?
Can somebody help=20 me???
Regards,
Andreas

 
------_=_NextPart_001_01C88FF5.FCC5B30E--