-
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.
fix for circular descriptions (#1101)
* edge case when ref element and type have the same name * increased test coverage for elements.ts
- Loading branch information
Showing
3 changed files
with
78 additions
and
1 deletion.
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,56 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:v1="http://www.example.com/v1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/v1"> | ||
<wsdl:types> | ||
<xsd:schema targetNamespace="http://www.example.com/v1"> | ||
|
||
<xsd:element name="ExampleContent" type="v1:ExampleContent"/> | ||
<xsd:element name="ExampleRequest" type="v1:ExampleRequestType"/> | ||
|
||
<xsd:complexType name="ExampleContent"> | ||
<xsd:sequence> | ||
<xsd:element name="MyID" type="xsd:string" /> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="ExampleRequestType"> | ||
<xsd:sequence> | ||
<xsd:element ref="v1:ExampleContent"/> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
|
||
</xsd:schema> | ||
</wsdl:types> | ||
|
||
<wsdl:message name="InMessage"> | ||
<wsdl:part element="v1:ExampleRequest" name="parameters"/> | ||
</wsdl:message> | ||
<wsdl:message name="OutMessage" /> | ||
|
||
<wsdl:portType name="MyPortType"> | ||
<xsd:annotation>Sample Port</xsd:annotation> | ||
<wsdl:operation name="MyOperation"> | ||
<wsdl:input message="v1:InMessage"/> | ||
<wsdl:output message="v1:OutMessage"/> | ||
</wsdl:operation> | ||
</wsdl:portType> | ||
|
||
<wsdl:binding name="MyBinding" type="v1:MyPortType"> | ||
<xsd:annotation>Sample Binding</xsd:annotation> | ||
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> | ||
<wsdl:operation name="MyOperation"> | ||
<soap:operation soapAction="MyAction" style="document"/> | ||
<wsdl:input> | ||
<soap:body parts="parameters" use="literal"/> | ||
</wsdl:input> | ||
<wsdl:output> | ||
<soap:body parts="parameters" use="literal"/> | ||
</wsdl:output> | ||
</wsdl:operation> | ||
</wsdl:binding> | ||
|
||
<wsdl:service name="MyService"> | ||
<wsdl:port binding="v1:MyBinding" name="MyPort"> | ||
<soap:address location="https://examplelocation.com/myservice"/> | ||
</wsdl:port> | ||
</wsdl:service> | ||
</wsdl:definitions> |