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
osamanosaman 

wsdl2apex error: Unsupported Schema element

Hi

 

I am trying to geenrate an apex class from WSDL. The class had external schema referred in it. I included the schema in the main WSDL. When I try to parse the WSDL it gives an error:

 

Unsupported Schema element found http://www.w3.org/2001/XMLSchema:attribute

 

According to this, salesforce does support "attribute", "xsd:attribute

, in Apex code saved using API version 15.0 and later"

 

Can any one tell me where am I going wrong?

 

Thanks in advance.

Afzal MohammadAfzal Mohammad

Thats strange.

 

Did you try, after removing the external schema reference from wsdl?

 

Afzal

osamanosaman

the attribute part is actually in the external schema.