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
Bhushan Singh 13Bhushan Singh 13 

getting error Apex Generation Failed Unsupported schema type: {http://www.w3.org/2001/XMLSchema}anyType

HI ,

I have genrated one Partner WSDL and trying to genrate Apex code from that WSDL into another user salesforce, but i am getting error
 Apex Generation Failed
"Unsupported schema type: {http://www.w3.org/2001/XMLSchema}anyType"
Please help me , I am new in salesforce.

Thanks & Regards
Bhushan Singh 
 
Best Answer chosen by Bhushan Singh 13
vijayabakarareddy yarrabothulavijayabakarareddy yarrabothula
These lines are generating errors in wsdl file
<element name="NewValue" nillable="true" minOccurs="0" type="xsd:anyType"/>
<element name="OldValue" nillable="true" minOccurs="0" type="xsd:anyType"/>

Here you have to change  anyType  to  String

All Answers

vijayabakarareddy yarrabothulavijayabakarareddy yarrabothula
These lines are generating errors in wsdl file
<element name="NewValue" nillable="true" minOccurs="0" type="xsd:anyType"/>
<element name="OldValue" nillable="true" minOccurs="0" type="xsd:anyType"/>

Here you have to change  anyType  to  String
This was selected as the best answer
Bhushan Singh 13Bhushan Singh 13
Hi Vijayabakararereddy,
These lines are not there in my wsdl file - please check in my salesforce login - 
this is the link where i put that wsdl file -
https://ap2.salesforce.com/015280000030dMT
username - bhushan.rathour@tavant.com
pwd - bhushan@1234

Please help me .

Thnaks & Regards 
Bhushan Singh 
vijayabakarareddy yarrabothulavijayabakarareddy yarrabothula
send your wsdl  file
baskarsfdc8297@gmail.com
Bhushan Singh 13Bhushan Singh 13
Hi Vijayabakararereddy,

It is now working for me. Thank You Very much for help. 
Please let me know what changes you done then it will be help full in future for me.

Thanks & Regards
Bhushan Singh
 
vijayabakarareddy yarrabothulavijayabakarareddy yarrabothula
open note pad ++
click on search(Ctrtl+F)
type "anytype"
Check for line that are similar to above 
change  anytype to string
and save it