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
RJ12RJ12 

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?
vijayabhaskarareddyvijayabhaskarareddy
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.