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

Rest call to enterprise api to make a describeGlobal call

Im trying to make a Rest call to enterprise api. I connect successfully using the partner wsdl and a session id returns, but when I post the call below I get a CalloutException 


I used the same details on


Can anyone help?


<?xml version="1.0" encoding="utf-8"?>' +
'<soapenv:Envelope xmlns:soapenv="<a href="" class="external free" title="" rel="nofollow"></a>' +
' xmlns:urn="">



      <urn:sessionId><b>' +session_ID+ '</b></urn:sessionId>




      <urn:describeGlobal />