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
Himanshu vermaHimanshu verma 

Calling metadata webservice via apex.

have created a webservice using metadata api in which i create a object in my salesforce org now i want to call this webservice in another salesforce org but i get webservice call out error everytime i execute it in my developer console.

Error -- Web service callout failed: WebService returned a SOAP Fault: System.CalloutException: Callout loop not allowed Class.MetadataService.MetadataPort.create

Please refer following thread to understand why this error occurs:
Himanshu vermaHimanshu verma
Hi vinita,
I refere this link but here mention is to use Rest Api but i am using my webservice within salesforce and i have used @future also to the method but same error callout  is coming.