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
Vimal Bhavsar 6Vimal Bhavsar 6 

Which Type of WSDL file is Able to generate the Apex Class to Salesforce?

Hi ,

I have one WSDL file Simply made by "Hello World " Example by default in MS Visual Studio, when i use this file to Generate from WSDL it will give error.
So wht i should keep in mind while creating the WSDL for using in to the salesforce ?

is there any specific way for this ?


thnx
Vimal Bhavsar
Deepak Kumar ShyoranDeepak Kumar Shyoran
If you simply want to create or a WSDL for your Apex Class Only then you need  Apex WSDL. Setup > Develop > API > Generate Apex WSDL.
kaustav goswamikaustav goswami
Hi Vimal,

If you want to generate a class in salesforce by parsing a wsdl through the wsdl2apex feature you must make sure that the wsdl is salesforce compatible.

There are many restrictions that you will have to face when it comes to parsing a wsdl in salesforce.

For a complete list of all the supported tags please visit the following link:
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts_wsdl2apex.htm

Please let me know if you have further questions on this.

Thanks,
Kaustav
Shivani.AroraShivani.Arora
Hi kaustav,

Can you please let me know, whats other options if WSDL file is not compatible? 

Thanks