+ Start a Discussion
Roisin KellyRoisin Kelly 

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

Hi There,

When I try to Generate Apex Class from WSDL I get the error Error: Failed to parse wsdl: Unsupported Schema element found http://www.w3.org/2001/XMLSchema:group.
the specific section it has an issue with is:


    <group name="dynamicRecipientsContent">
        <choice>
            <element name="recipientDetail" type="mir3:recipientDetailType" />
            <element name="recipient" type="mir3:recipientType" />
            <element name="recipientGroupTitle" type="string" />
            <element name="recipientScheduleTitle" type="string" />
        </choice>
    </group>
   <complexType name="dynamicRecipients2Type">
        <group ref="mir3:dynamicRecipientsContent" minOccurs="0" maxOccurs="unbounded" />
    </complexType>

Can anyone help with this?
JyothsnaJyothsna (Salesforce Developers) 
Hi,

Please remove a servicesoap12 element from your code after that you can be able to generate Apex class from WSDL file.

For updated WSDL, please refer the below link

https://developer.salesforce.com/forums?id=906F0000000g04vIAA#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=906F00000008xzZIAQ


Hope this helps you!

Please mark it as best answer if it is really helpful.
Best Regards,
Jyothsna