function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pradip YadavPradip Yadav 

Unsupported Schema element found

Hello Friends!!!


I am trying to Generate Apex Classes from WSDL file.  But while parsing XML file getting below message.


Failed to parse wsdl: Unsupported Schema element found


Our WSDL contains below elements


<xs:attribute name="FactoryType" type="xs:QName"/>
<xs:attribute name="Id" type="xs:ID"/>
<xs:attribute name="Ref" type="xs:IDREF"/>


I referred Salesforce help site and w3school schemas referral sites and i found both supports attribute tag:

Salesforce help Site:


w3school XML Schema referral:


Please let me know if one knows about the same.






While generating the class from WSDL it ask for parse name .

please provide the correct parsing name .. it creates a problem.try naming it same for all three or change only the first one and rest be same



Pradip YadavPradip Yadav



Those solutions doesnt works on it. This problem is specific becuase of this attribute element.


I am able to parse WSDL if i removed those attribute element from the file and also generates Apex classes.

But my concern is about  attribute element.  is there any more specific format it requires?

Hi Pradip,
I am runing into same error when parsing wsdl The below error i am getting.

Error: Failed to parse wsdl: Unsupported Schema element found

Can you help on this how you resolved. If you remove attributes and parse how does it affects the webservice call.