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

Apex Generation Failed Unsupported schema type: {}anyType

i am trying to generate apex class from wsdl ,but the error showing that


Apex Generation Failed Unsupported schema type: {}anyType in sales force when i click  generate Apex code



My java service has list data type return so in the wsdl also the type is any Type


The wsdl syntax is :


 <xs:complexType name="CardProviderResponse">
                    <xs:element minOccurs="0" name="cardProviderContainers" nillable="true" type="xs:anyType"/>
                    <xs:element minOccurs="0" name="errorMessage" nillable="true" type="xs:string"/>
            </xs:complexType> in the wsdl


Now how to solve this problem ? how to generate apex class for this type of wsdl ?


hi  man

r u able to solve the error


i just go exactly the same error


pls help