+ Start a Discussion
Shabbir ShaikShabbir Shaik 

Callout exception in Metadata API:

Hi,

Callout exception when creating metadata from one salesforce to other salesforce organization.

Here is my error while executing code,

System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: No operation available for request {http://soap.sforce.com/2006/04/metadata}createMetadata faultcode=soapenv:Client faultactor=

can anybody know this?
logontokartiklogontokartik
what are you passing in to createMetadata? You need to pass in the array of Metadata Objects for the method to be successful. Can you post your code snippet where you are calling the createMetadata method
Shabbir ShaikShabbir Shaik
Hi kartik,

Thanks for your reply,

If i give session id of same salesforce organization this code will work properly, only when i am trying to connect with other salesforce org to create metadata it gives that error.
logontokartiklogontokartik
Very interesting, have you verified the Metadata API Versions of the orgs? Sometimes there is a possibility that some of your sanboxes are upgraded but the production orgs are not.
Shabbir ShaikShabbir Shaik
Kartik,

Here i am using Boath are Developer Edition.