+ Start a Discussion
DrBixDrBix 

Unable to parse callout response. Apex type not found

I've been trying to integrate with a system via a webservice call out.  It's been "mostly" working, but now, I'm getting this exception:

 

A problem with the OnClick JavaScript for this button or link was encountered:
{faultcode:'soapenv:Client', faultstring:'System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element contentType
Class.productCatalogServiceCatalogDante.ProductCatalogServicePort.searchCatalog: line 93, column 14Class.AddProductsFromPM3.AddProducts: line 27, column 55External entry point', }

 

I actually verified that the contentType field DOES exist in the element.  

        private String[] contentType_type_info = new String[]{'contentType','http://www.w3.org/2001/XMLSchema','string','0','1','false'};

 

The resulting XML part looks like this;

    <presentationElements>                 

        <contentType>IMAGE</contentType> 

 

What could be causing this problem?

dkadordkador

There's a good chance that your WSDL includes unsupported features for WSDL2Apex.