Created
December 13, 2018 08:53
-
-
Save vikaskanani/016522bc8969008e5efdf6770effc430 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
targetNamespace='http://webservice.example.com/' | |
xmlns:tns='http://webservice.example.com/' | |
elementFormDefault="qualified"> | |
<xs:element name="shiporder" type='tns:shiporder' /> | |
<xs:complexType name="shiporder"> | |
<xs:sequence> | |
<xs:element name="orderperson" type="xs:string"/> | |
<xs:element name="shipto" type='tns:shipto' /> | |
<xs:element maxOccurs='unbounded' minOccurs='0' name="item" type='tns:item' /> | |
</xs:sequence> | |
<xs:attribute name="orderid" type="xs:string" use="required"/> | |
</xs:complexType> | |
<xs:complexType name="shipto"> | |
<xs:sequence> | |
<xs:element name="name" type="xs:string"/> | |
<xs:element name="address" type="xs:string"/> | |
<xs:element name="city" type="xs:string"/> | |
<xs:element name="country" type="xs:string"/> | |
</xs:sequence> | |
</xs:complexType> | |
<xs:complexType name="item"> | |
<xs:sequence> | |
<xs:element name="title" type="xs:string"/> | |
<xs:element name="note" type="xs:string" minOccurs="0"/> | |
<xs:element name="quantity" type="xs:positiveInteger"/> | |
<xs:element name="price" type="xs:decimal"/> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment