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
eworks123456eworks123456 

Can we generate webservice apex classes for all custom objects automatically

Hi All,

 

I have created 20 custom objects in salesforce.

Now i want to integrate these objects with flex.

I want to perform insert,update,delete,update operation from flex side which i have to integrate with salesforce via webservice.

 

My need is instead og writing apex webservice manually for 20 objects is there any way(some API method) which generate these apex web service classes automatically.

 

Please help me.

 

Regards,

Manoj Jain

SuperfellSuperfell
Why don't you just use the regular enterprise or partner APIs which will already have support for CRUD operations on all your standard & custom objects ?
EnthEnth
Absolutely, Simon is right. If you're not sure where it is, simply go to Setup->Develop->API and you'll see the option for Generate Enterprise WSDL. If you're building a package applicaiton for app exchange or an ISV you'll need to use the Partner WSDL instead.
NBlasgenNBlasgen
My two cents would be to always use the Partner API.  Just a lot more flexible.
Nick34536345Nick34536345
There is some benefit to write your own apex web services, but yeah, for simple CrUD if you are using flex why not just use the flex toolkit, it is just an ActionScript wrapper on the API and you don't need to care about WSDLs at all.