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

SOAP: No type 'ArrayOfCustom' in namespace http://www.w3.org/2001/XMLSchema. #1696

Closed
dpc22 opened this issue Jul 11, 2023 · 3 comments · Fixed by #1698
Closed

SOAP: No type 'ArrayOfCustom' in namespace http://www.w3.org/2001/XMLSchema. #1696

dpc22 opened this issue Jul 11, 2023 · 3 comments · Fixed by #1698
Labels

Comments

@dpc22
Copy link
Contributor

dpc22 commented Jul 11, 2023

Version

6.2.72

Installation method

My own rpm, derived from the official rpm for RHEL 7

Expected behavior

My example scripts at:
https://help.uis.cam.ac.uk/service/email/lists/sympa/information-about-uis-managed-mailing-lists/sympasoap

should work without throwing an exception.

Actual behavior

Both scripts worked with 6.2.70. After I upgraded to version 6.2.72 the Perl script still works, but the Python version throws an exception:

File "/usr/lib/python3/dist-packages/zeep/xsd/schema.py", line 530, in _get_component
    raise exceptions.LookupError(
zeep.exceptions.LookupError: No type 'ArrayOfCustom' in namespace http://www.w3.org/2001/XMLSchema. Available types are
...
zeep.exceptions.LookupError: Unable to resolve type {http://www.w3.org/2001/XMLSchema}ArrayOfCustom in None. (via {https://lists.cam.ac.uk/sympa/wsdl}detailsType)

I have uploaded the full text of the exception as a txt attachment:

exception.txt

It is entirely possible that this is a bug in my script. However it looks like the Python zeep module is expecting to find something in http://www.w3.org/2001/XMLSchema which does not exist.

Steps to reproduce

You should be able to use the script at https://help.uis.cam.ac.uk/system/files/documents/sync.py, replacing:

soap_url = "https://lists.cam.ac.uk/sympa/wsdl"

with some other service.

Additional information

I am going to revert back to version 6.2.70 tomorrow morning. I do however have a test system if we need to test anything.

@dpc22 dpc22 added the bug label Jul 11, 2023
@dpc22
Copy link
Contributor Author

dpc22 commented Jul 11, 2023

Here's a minimal Python script which throws the same exception:

#!/usr/bin/python3
#
# Ubuntu python3-zeep is "a fast and modern Python SOAP client"
from zeep.client import Client, Settings

soap_url = "https://lists.cam.ac.uk/sympa/wsdl"
zeep = Client(soap_url, settings=Settings(strict=False))

(that particular soap_url should start to work tomorrow after I revert to 6.2.70)

@ikedas
Copy link
Member

ikedas commented Jul 12, 2023

Hi @dpc22 ,

Thanks for reporting bug! Could you please apply this patch and check if the problem will be solved?

@dpc22
Copy link
Contributor Author

dpc22 commented Jul 12, 2023

Yes, that seems to have fixed the problem. Thank you.

I included the patch from #1676 at the same time, as that seems to be related.

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

Successfully merging a pull request may close this issue.

2 participants