-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow ComplexContentElement to have a restriction (#1252)
as child element and implement attributes parsing for RestrictionElement
- Loading branch information
Showing
3 changed files
with
127 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" | ||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | ||
xmlns:tns="http://example.com/wsdl" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
targetNamespace="http://example.com/wsdl" | ||
name="SampleService"> | ||
|
||
<types> | ||
<xsd:schema targetNamespace="http://example.com/wsdl"> | ||
|
||
<xsd:simpleType name="Age"> | ||
<xsd:restriction base="xsd:int"> | ||
<xsd:minInclusive value="0"/> | ||
<xsd:maxInclusive value="120"/> | ||
</xsd:restriction> | ||
</xsd:simpleType> | ||
|
||
<xsd:complexType name="objectKey"> | ||
<xsd:sequence/> | ||
<xsd:attribute name="id" type="xsd:string"/> | ||
<xsd:attribute name="internalName" type="xsd:string"/> | ||
<xsd:attribute name="key" type="xsd:string"/> | ||
<xsd:attribute name="type" type="xsd:long" use="required"/> | ||
<xsd:attribute name="origin" type="xsd:string"/> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="objectDef"> | ||
<xsd:complexContent> | ||
<xsd:restriction base="tns:objectKey"> | ||
<xsd:attribute name="id" type="xsd:string" use="required"/> | ||
<xsd:attribute fixed="-500020" name="type" type="xsd:long" use="required"/> | ||
</xsd:restriction> | ||
</xsd:complexContent> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="Person"> | ||
<xsd:sequence> | ||
<xsd:element name="Name" type="xsd:string"/> | ||
<xsd:element name="Age" type="tns:Age"/> | ||
<xsd:element name="ObjectDetails" type="tns:objectDef"/> | ||
</xsd:sequence> | ||
<xsd:attribute name="id" type="xsd:string" use="required"/> | ||
</xsd:complexType> | ||
|
||
<xsd:element name="Person" type="tns:Person"/> | ||
|
||
</xsd:schema> | ||
</types> | ||
|
||
<message name="GetPersonRequest"> | ||
<part name="personId" type="xsd:string"/> | ||
</message> | ||
|
||
<message name="GetPersonResponse"> | ||
<part name="Person" element="tns:Person"/> | ||
</message> | ||
|
||
<portType name="SamplePortType"> | ||
<operation name="GetPerson"> | ||
<input message="tns:GetPersonRequest"/> | ||
<output message="tns:GetPersonResponse"/> | ||
</operation> | ||
</portType> | ||
|
||
<binding name="SampleBinding" type="tns:SamplePortType"> | ||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> | ||
<operation name="GetPerson"> | ||
<soap:operation soapAction="http://example.com/wsdl/GetPerson" style="document"/> | ||
<input> | ||
<soap:body use="literal"/> | ||
</input> | ||
<output> | ||
<soap:body use="literal"/> | ||
</output> | ||
</operation> | ||
</binding> | ||
|
||
<service name="SampleService"> | ||
<port name="SamplePort" binding="tns:SampleBinding"> | ||
<soap:address location="http://example.com/SampleService"/> | ||
</port> | ||
</service> | ||
|
||
</definitions> |