-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from veewee/import-root-type-error
Fix import of removed (optimized) root xmlns during flattening schemas
- Loading branch information
Showing
5 changed files
with
108 additions
and
11 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
30 changes: 30 additions & 0 deletions
30
tests/fixtures/flattening/result/root-xmlns-import-issue-result.wsdl
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,30 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<wsdl:definitions | ||
name="agenzia" | ||
targetNamespace="http://www.immobinet.it/wsdl/WebserviceModAgenziaBundle" | ||
xmlns:imw="http://www.immobinet.it/wsdl/WebserviceModAgenziaBundle" | ||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | ||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:core="http://www.immobinet.it/schema/WebserviceCoreBundle" | ||
xmlns:imm2="http://www.immobinet.it/schema/WebserviceImmobileBundle" | ||
> | ||
<wsdl:types> | ||
<xsd:schema xmlns:imsw="http://www.immobinet.it/schema/WebserviceModAgenziaBundle" elementFormDefault="qualified" targetNamespace="http://www.immobinet.it/wsdl/WebserviceModAgenziaBundle"> | ||
<xsd:import namespace="http://www.immobinet.it/schema/WebserviceCoreBundle"/> | ||
</xsd:schema> | ||
<xsd:schema | ||
xmlns="http://www.w3.org/2001/XMLSchema" | ||
xmlns:imm="http://www.immobinet.it/schema/WebserviceCoreBundle" | ||
targetNamespace="http://www.immobinet.it/schema/WebserviceCoreBundle" | ||
elementFormDefault="qualified" | ||
> | ||
<xsd:complexType name="Auth"> | ||
<xsd:sequence> | ||
<xsd:element name="username" type="string" maxOccurs="1" minOccurs="1"/> | ||
<xsd:element name="password" type="string" maxOccurs="1" minOccurs="1"/> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
</xsd:schema> | ||
</wsdl:types> | ||
</wsdl:definitions> |
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<wsdl:definitions name="agenzia" targetNamespace="http://www.immobinet.it/wsdl/WebserviceModAgenziaBundle" | ||
xmlns:imw="http://www.immobinet.it/wsdl/WebserviceModAgenziaBundle" | ||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | ||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:core="http://www.immobinet.it/schema/WebserviceCoreBundle" | ||
xmlns:imm2="http://www.immobinet.it/schema/WebserviceImmobileBundle"> | ||
<wsdl:types> | ||
<xsd:schema elementFormDefault="qualified" | ||
targetNamespace="http://www.immobinet.it/wsdl/WebserviceModAgenziaBundle" | ||
xmlns:imsw="http://www.immobinet.it/schema/WebserviceModAgenziaBundle" | ||
> | ||
<xsd:import schemaLocation="xsd/root-xmlns-import-issue-core.xsd" | ||
namespace="http://www.immobinet.it/schema/WebserviceCoreBundle"></xsd:import> | ||
|
||
</xsd:schema> | ||
</wsdl:types> | ||
</wsdl:definitions> |
10 changes: 10 additions & 0 deletions
10
tests/fixtures/flattening/xsd/root-xmlns-import-issue-core.xsd
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.immobinet.it/schema/WebserviceCoreBundle" | ||
xmlns:imm="http://www.immobinet.it/schema/WebserviceCoreBundle" elementFormDefault="qualified"> | ||
<complexType name="Auth"> | ||
<sequence> | ||
<element name="username" type="string" maxOccurs="1" minOccurs="1"></element> | ||
<element name="password" type="string" maxOccurs="1" minOccurs="1"></element> | ||
</sequence> | ||
</complexType> | ||
</schema> |