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 http://www.w3.org/2001/XMLSchema:attribute

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 http://www.w3.org/2001/XMLSchema:attribute

 

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: http://www.salesforce.com/us/developer/docs/dbcom_apex250/Content/apex_callouts_wsdl2apex.htm

 

w3school XML Schema referral: http://www.w3.org/2001/XMLSchema

 

Please let me know if one knows about the same.

 

Thanks,

Pradip

 

AshishyadavAshishyadav

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

 

 

Satish_SFDCSatish_SFDC
Pradip YadavPradip Yadav

Hi,

 

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?

s_k_as_k_a
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 http://www.w3.org/2001/XMLSchema:attribute.

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