Skip to content

Instantly share code, notes, and snippets.

@robbypelssers
Last active August 29, 2015 14:17
Show Gist options
  • Save robbypelssers/247eba6f374f330340d9 to your computer and use it in GitHub Desktop.
Save robbypelssers/247eba6f374f330340d9 to your computer and use it in GitHub Desktop.
helloworldservice - helloworld.xsd
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema xmlns:tns="http://com.pelssers.helloworld/wrapper"
xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0"
targetNamespace="http://com.pelssers.helloworld/wrapper">
<xs:element name="helloWorldRequest" type="tns:HelloWorldRequestType" />
<xs:element name="helloWorldResponse" type="tns:HelloWorldResponseType" />
<xs:element name="error" type="tns:errorType"/>
<xs:element name="unused" type="xs:string"/>
<xs:element name="Unused" type="xs:integer"/>
<xs:complexType name="HelloWorldRequestType">
<xs:sequence>
<xs:element name="firstName" type="xs:string"/>
<xs:element name="first_name" type="xs:string"/>
<xs:element name="lastName" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="HelloWorldResponseType">
<xs:sequence>
<xs:element name="greeting" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="reasonType">
<xs:simpleContent>
<xs:extension base="xs:string" />
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="ReasonType">
<xs:simpleContent>
<xs:extension base="xs:string" />
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="errorType">
<xs:sequence>
<xs:element name="errorCode" type="xs:string"/>
<xs:element name="detail" type="xs:string"/>
<xs:element name="reason" type="tns:reasonType"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment