header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
November 22, 2008, 02:44:47 am
Username: Password:
Login with username, password and session length

Forgot your password?
 
xsd:ID validation problem
Welcome, Guest. Please login or register.
November 22, 2008, 02:44:47 am
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  xsd:ID validation problem
« previous next »
Pages: [1] Print
Author Topic: xsd:ID validation problem  (Read 501 times)
TomK
soapui pro users
Newbie
*
Posts: 25


« on: June 18, 2008, 01:04:34 pm »

soapUI complains that an xsd:ID field with value pattern nnnnnnnA is not valid. Would anyone know why that is?
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #1 on: June 18, 2008, 08:39:59 pm »

Hi!

that sounds strange.. can you show the complete error message and/or corresponding message and wsdl?

regards,

/Ole
eviware.com
Logged
TomK
soapui pro users
Newbie
*
Posts: 25


« Reply #2 on: June 19, 2008, 01:03:56 pm »

This is the error message accompanied by failed schema compliance:

line 6: string value '12345678A' does not match pattern for xs:ID

And this is an excerpt of the domain schema where the relevant field is defined:

   ...
   <xsd:element name="Supporter" type="dom:SupporterType"/>
   <xsd:complexType name="SupporterType">
      <xsd:sequence>
         <xsd:element name="srn" type="xsd:ID"/>
         <xsd:element name="title" type="xsd:string" minOccurs="0"/>
          ...
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #3 on: June 19, 2008, 11:17:24 pm »

Hi,

as far as I understand from the XML Schema spec, an xs:ID is basicallly an NCName, which is defined as

NCName     ::=    (Letter | '_') (NCNameChar)*

(see http://www.w3.org/TR/1999/REC-xml-names-19990114#NT-NCName)

so it should basically start with either a letter or an underscore.. !?

regards,

/Ole
eviware.com
Logged
TomK
soapui pro users
Newbie
*
Posts: 25


« Reply #4 on: June 24, 2008, 11:07:04 am »

I do apologise, I should have picked up on that.

Thank you very much for helping me out.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header