You need to sign in to do that
Don't have an account?
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
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:
http://salesforce.stackexchange.com/questions/6142/callout-loop-not-allowed-error
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.