<-- Back

Consumed Web Service errors: element is not supported

Issue

When importing a Consumed Web Service into an application, errors resembling the following occur:

This 'Choice' element is not supported in export mappings.
 
'Mixed' content is not supported.
'Any' element is not supported.
This sequence element is nested and optional. This is only partially supported in import mappings and not at all in export mappings.

Environment

Studio Pro (all versions)

Cause

Mendix does not support the entire XSD standard. Specifically, the mapping in Mendix is based on entities and attributes, and certain XSD constructs do not easily fit this format, as mentioned in our XSD File Support documentation (not an exhaustive list):

Screenshot 2025-03-13 150258.png

There are several different combinations of elements that are not (or are only partially) supported in Mendix, hence the errors are quite generic.

Solution/Workaround

To resolve the issue, the XML schema (.xsd) or web service definition (.wsdl) must be edited manually:

  1. Open the XSD/WSDL file in an XML/WSDL editor.
  2. Modify the structure to conform to the constructs supported by Mendix (see XML Schemas).
  3. Import the modified XSD/WSDL file when configuring the consumed web service in Studio Pro.

Internal information related

  • 152017, 164213, 178444, 201735, 230627
  •  C012YN4MJ3H/p1729515838508139, C0A044PPS/p1728913974666879

Additional information 

Mendix documentation:

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.