logo       

WSDL-Structure: Restrictions ...: msg#00086

php.nusoap.general

Subject: WSDL-Structure: Restrictions ...

Hallo,

I've to build a webservice in doc/lit-style, that offers WSDL. The structure
is already defined with some partners, who uses AXIS. The defined XML-schema
is quite complex, but necessary. For example it contains restrictions of
integer and string-types, using "xsd:enumeration", "xsd:pattern",
"xsd:minLength" and so on.

I was looking around the web past weeks for some samples, but found nothing
:-(((

Is there somebody, who implemented such restrictions in praxis?

Here is a snippet, how the WSDL should look like:
...
<xsd:simpleType name="record_id">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="timestamp">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\d{12}"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="record_type">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="DE"/>
<xsd:enumeration value="ES"/>
<xsd:enumeration value="FR"/>
</xsd:restriction>
</xsd:simpleType>
...

Thanks for your help!
Bye, Andreas


--
+++ GMX - Die erste Adresse für Mail, Message, More +++

1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise