Error using matlab.wsd​l.createWS​DLClient

9 vues (au cours des 30 derniers jours)
Rich Garner
Rich Garner le 1 Sep 2020
Réponse apportée : Pratik le 12 Déc 2024
When I try to create a WSDL client with matlab.wsdl.createWSDLClient using a *.wdsl file on my computer, I get an error that tells me that I am exceeding the EnumMemberSizeCap limit of 256. Specifically, here is the entire error (in bold):
Error using matlab.wsdl.createWSDLClient (line 247)
Error processing WSDL:
Sep 01, 2020 4:11:49 PM org.apache.cxf.tools.common.ToolErrorListener addWarning
WARNING: file:/C:/Users/USFRK.USER/Documents/Matlab%20work/BlockEng/BLKQCL-ACURegisterNames-v2017-04.xsd [3,2]: Simple type "ACURegisterNameType" was not mapped to Enum due to
EnumMemberSizeCap limit. Facets count: 324, current limit: 256. You can use customization attribute "typesafeEnumMaxMembers" to extend the limit.
I have tried to do as is suggested, namely set a customized attribute called "typesafeEnumMaxMembers" to some value larger than what I require (that is, >324), however I have no idea how to do this. Do I put it somewhere in the .wsdl file? I also have about 4 .xsd files. Do I put it there?
Any help is much appreciated.

Réponses (1)

Pratik
Pratik le 12 Déc 2024
Hi Rich,
This issue is likely due to a Java limitation, as Java can only handle up to 256 enumeration members, and your WSDL schema exceeds this limit. You might resolve this by updating your schema with an inline customization. The following links provide guidance on this process and offer additional context on similar error messages:
If you have any follow-up questions regarding the information in the links above, please reach out to the owners of these pages.

Catégories

En savoir plus sur Call Web Services from MATLAB Using WSDL dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by