Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrongs Namespace #1392

Open
isysoftware opened this issue Sep 15, 2023 · 0 comments
Open

Wrongs Namespace #1392

isysoftware opened this issue Sep 15, 2023 · 0 comments

Comments

@isysoftware
Copy link

Hi All.

I have some problems on loading a WSDL.
WSDL reference two schema:
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://dummy" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" name="IWsAPIAccount" targetNamespace="http://dummy"> <types> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="http://dummy"> <xs:include schemaLocation="/xsd/Schema1.xsd"/> <xs:include schemaLocation="/xsd/Schema2.xsd"/> </xs:schema> </types>

Schema1.xsd include another XSD:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:include schemaLocation="../xsd/APICommon.xsd"/>

I have two kind of problem:
1 - Before I create the client with Client(wsdl=mywsdl), I need to change the WSDL adding a . before /xsd:
<xs:include schemaLocation="./xsd/Account.xsd"/>
2 - Client(wsdl=mywsdl) fails:
Unable to resolve type {http://schemas.xmlsoap.org/wsdl/}AVAILABILITY. No schema available for the namespace 'http://schemas.xmlsoap.org/wsdl/'.
AVAILABILITY is defined in APICommon.xsd that is include in Schema1.xsd; APICommon1.xsd has xmlns:xs="http://www.w3.org/2001/XMLSchema" as namespace.

What's wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant