+ Start a Discussion

Error while Generating Apex Code from Partner WSDL

I'm getting an error while trying to generate Apex code from Partner WSDL file.
~Apex Generation Failed
Unsupported schema type: {http://www.w3.org/2001/XMLSchema}anyType

How to overcome this error?
Hi @raj
These are the code lines that are creating errors:
<element name="NewValue" nillable="true" minOccurs="0" type="xsd:anyType"/>
<element name="OldValue" nillable="true" minOccurs="0" type="xsd:anyType"/>

chang "anytype" to "string" and then  u will  able to generate apex classes from wsdls.