+ Start a Discussion

wsdl2apex error: Unsupported Schema element



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?




the attribute part is actually in the external schema.