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

CalloutException : Failed to get next element

I can't get past this error message using an class generated from a WSDL. There's one or two threads that touch on this but nothing helpful. What does this message mean?


Web service callout failed: Failed to get next element

Error is in expression '{!doWSDLCallout}' in component <apex:page> in page simplewscallout
From debug log:

14:06:51.976 (976692000)|SYSTEM_METHOD_ENTRY|[99]|WebServiceCallout.invoke(APEX_OBJECT, APEX_OBJECT, MAP, LIST)
14:06:51.982 (982105000)|CALLOUT_REQUEST|[99]|searchReqType:[apex_schema_type_info=(, true, false), clientId=, clientId_type_info=(clientId,, string, 1, 1, false), clientTransactionId=, clientTransactionId_type_info=(clientTransactionId,, string, 0, 1, false), field_order_type_info=(clientId, clientTransactionId, searchKey, ), =Type:[apex_schema_type_info=(, true, false), field_order_type_info=(prescriber), prescriber=null, prescriber_type_info=(prescriber,, prescriberType, 1, -1, false)], _type_info=(,, Type, 1, 1, false), searchKey=, searchKey_type_info=(searchKey,, string, 1, 1, false)]::SFDC_STACK_DEPTH=1 SOAPAction="" User-Agent=SFDC-Callout/25.0 Accept=text/xml Content-Type=text/xml; charset=UTF-8
14:06:52.050 (1050268000)|EXCEPTION_THROWN|[99]|System.CalloutException: Web service callout failed: Failed to get next element


Hey Sean,


I hope , you were able to resolve issue related with "System.CalloutException: Web service callout failed: Failed to get next element " .


If you were, then do share your finding with me .  


Thanks a Lot !! 

Kalpesh Vyas 7Kalpesh Vyas 7
Anyone have resolution for this, I am also facing same problem.
Mark Brown 33Mark Brown 33
would be useful if people returned to their un-answered questions when they have a resolution and answer it themselves