+ Start a Discussion
Chester CheeChester Chee 

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

Hi,

 

I am experimenting with generating APEX classes from WSDL, and I ran into an error when SF parse the WSDL. I am new to SF, can some guru please shed some enlightenments on what this error is about? Very much appreciated. Thanks in advance.

 

Error: Failed to parse wsdl: Unsupported Schema element found http://www.w3.org/2001/XMLSchema:attributeGroup.

SuperfellSuperfell

The XML Schema in your WSDL doc uses a feature of schema called attributeGroups, these are not supported by WSDL2Apex.

Chester CheeChester Chee

Hi SimonF,

 

Thanks for quick response. Is there a workaround for this? Just curious if there is any plan to add support? Thanks in advance.

dito-vinaydito-vinay

Bump :) I'm curious about this as well. I have a similar issue with xsd:attribute

Prajapati.LakhanPrajapati.Lakhan

Hi,

 

Document says different story, it does not seam to be unsupported. I am facing the same problem. Does somebody know what i missed -

 

From the document-

Apex also supports the following schema constructs:

  • Element
  • Sequence
  • All (in Apex Code saved using API version 15.0 or later)
  • Annotation (in Apex Code saved using API version 15.0 or later)
  • Attributes (in Apex Code saved using API version 15.0 or later)
  • Choice (in Apex Code saved using API version 15.0 or later)
  • Ref

 

 

Thanks,

Lakhan

Richard BlakeRichard Blake
You need to create ann apex class for that unsupported schema - http://www.w3.org/2001/XMLSchema:attributeGroup. once youve done that, try the original wsdl to apex again and it will work because that sub-schema can be referenced
swathiswathi
Hi All,

I am facing the same issue. Is there any work around