473,467 Members | 1,300 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

complexType/simpleType not enforced

Hi all,
I'm developing a web service, and as part of the WSDL I have the
following constraints:

<xsd:simpleType name="consTokenType">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[a-z0-9]{32}"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="statusType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="enroute"/>
<xsd:enumeration value="delayed"/>
<xsd:enumeration value="instorage"/>
<xsd:enumeration value="pendingcustoms"/>
<xsd:enumeration value="missing"/>
</xsd:restriction>
</xsd:simpleType>

However, these restrictions are not being enforced. It is also the
case with other complexTypes in the document.
Anyone have an idea why this is the case?

Thanks

Apr 20 '07 #1
2 1625
However, these restrictions are not being enforced.

Are you sure schema validation is turned on in your parser's options?
(Many still default to nonvalidating mode.)

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Apr 20 '07 #2
On Apr 20, 5:38 pm, Joe Kesselman <keshlam-nos...@comcast.netwrote:
However, these restrictions are not being enforced.

Are you sure schema validation is turned on in your parser's options?
(Many still default to nonvalidating mode.)

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry

Hi,
My parser is PHP5 using the SOAP extension. I thought this might be
the case... I assume PHP does not validate using the schema (ignores
it)?
Perhaps I should post this in the PHP group.

Thanks

Apr 21 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: D. Alvarado | last post by:
Hello, I am trying to validate my XML document against a schema using the Sun Multi-Schema XML Validator. Unfortunately, my schema fails to validate, and is failing because of this cryptic...
2
by: aevans1108 | last post by:
Greetings Please give me a push in the right direction if this the wrong place to ask this question. Why is it that I can get the count of facets for an element restriction if the...
0
by: beyonddc.storage | last post by:
Below is my current schema <xs:simpleType name="LongType"> <xs:restriction base="xs:long"> </xs:restriction> </xs:simpleType> <xs:simpleType name="MaxLong"> <xs:restriction base="LongType">...
2
by: ZagrebMike | last post by:
Hi, I want to create a simpleType that will constrain an element to be a date of the form dd/mm/yyyy. I have this at the moment, <xs:simpleType name="newDate"> <xs:restriction...
1
by: sk | last post by:
How can I validate the element within the a simgle element? I tried to make a schema like the following, but seems the schema is not right. xml doc <id0001> <id0002>hello</id0002> </id0001> ...
1
by: Istvan | last post by:
Hi ! Can somebody tell me if it's possible to overwrite an element definition when I derive an complexType (with extension, or something like this ) ? The base complexType looks like: ...
3
by: Gerry Vandermaesen | last post by:
Hi, I am currently having the exact same problem as described here: http://bugs.php.net/bug.php?id=36226 The webservice is configured to return 0-* objects of a complextype, but when only...
0
by: JamesG | last post by:
Hi all, In my WSDL, I have several constraints on the data structure. The problem is, they aren't being enforced. Take the following two as an example. <xsd:simpleType name="consTokenType">...
3
by: Anil Mamede | last post by:
Hi, I'm having an hard time to build a regular expression that: - Will accept words; - Will accept spaces; - But cannot accept digits; Examples: This is a game
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.