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
pj_27pj_27 

Unable to parse callout response. Apex type not found for element SalesService

Hi , I am new to web services ... I am trying to consume a service and get the project details by calling a method from a WSDL generated class.

 

Here class SalesOffering is WSDL generated class and Service1Soap is inner class of SalesOffering. The method below  GetProjectsForOpportunity('Sales','sdfsdfdfs','3453636') is defined in Service1Soap class.  method takes 3 parameter and it should generate a proper response . I tried to consume this service in .NET and it was a success. 

 

Here is the code which I used in System log to get results. 

 

SalesOffering.Service1Soap obj = new SalesOffering.Service1Soap();
SalesOffering.GetProjectsForOpportunityResult_element ele =obj.GetProjectsForOpportunity('Sales','sdfsdfdfs','3453636');

System.debug(ele);

 

and I got the error - System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element SalesService

 

Please help me. Thanks in advance ...

 

pj_27pj_27

Hey , anyone has any thought ? suggestion ? Help needed on this urgently .....