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
priyaSFpriyaSF 

System.CalloutException: Unable to parse callout response. Apex type not found for element

While trying to make a callout , we are getting an exception
"System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element ''http://www.tempURI.org/xyz=message"

 

I checked that the element is defined and it is a public class.

Apex_scema_type_info in that class is pointing to correct namespace.

 

Totally clueless of what this error is!! I suspect about the multiple namespaces we are using.I am not sure though if that is an issue and if so how to fix it.

 

If anyone has faced this before, please guide us on this.

 

Thanks!

DovaDova

It could be that you violate:

 

  • xsd:element. In Apex code saved using API version 15.0 and later, the ref attribute is also supported with the following restrictions:
    • You cannot call a ref in a different namespace.
    • A global element cannot use ref.
    • If an element contains ref, it cannot also contain name or type.

See more http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts_wsdl2apex.htm