You need to sign in to do that
Don't have an account?
netspider
Using the Enterprise and Partner wsdls
I want multiple orgs to be able to copy my apex code from my org, so I expected the Enterprise to be best placed for this, but could also use the Partner wsdl and the query method to query ApexClass object.
But when I try to import the wsdl I get errors
The faultPartnerSoapSforceCom sobjectPartnerSoapSforceCom class are made, but not partnerSoapSforceCom
Error: partnerSoapSforceCom
Error: unexpected token: 'delete' at 670:51
you might be consuming partner/Enterprise wsdl in your org.
Since delete is reserved keyword in salesforce you cant use the same name in your code.
You have to rename the same with Delete__x or something you are comfortable with.
You have to do the same for all the reserved keywords like upsert,insert etc.
at all, you have to do it with
upsert, delete, merge, undelete, update
hi
Yes Ive worked this out, you do have to do what you suggested but you have to have to do other things as well
http://stevefouracre.blogspot.co.uk/2012/11/rest-call-to-enterprise-wsdl-from-apex.html
Steve