By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,049 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

complexType/simpleType not enforced

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.