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
cloudSavvyProgcloudSavvyProg 

Apex callouts using SOAP API WSDL returns null

Hi,

I am Integrating external service with Salesforce dev org using SOAP API WSDL. I am trying to get the data from external service.

I have followed steps through the below link
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_continuation_callout_soap.htm

The WSDL generated is Aysnchronous one which uses System.Continuation as its arguments.

The issue is when i do 
public Object processResponse() {   
      result = stockQuoteFuture.getValue();
       return null;
    }

the getValue() method returns null. So i get null pointer exception on VF page.

I also get 'StockQuoteListResponse_elementFuture:[WebServiceCalloutFuture.label=Continuation-1]' in the debug logs. I am not sure what that means.

Any suggestion will be helpfull.

Thanks



 
vinayaka murthyvinayaka murthy
I am facing same problem. you got any solution?
cloudSavvyProgcloudSavvyProg
Hi Vinayaka,

The issue with my code was that I was resetting the variable value which stored getValue(). It was my bad. 

Can you post your code? I might able to advice something.


Cheers,
CloudSavvyProg
Aakriti GoyalAakriti Goyal
I am having the same problem. Not sure what the problem is. I am getting - [WebServiceCalloutFuture.label=Continuation-1]. Need help.
Ashwini Khot 16Ashwini Khot 16
Hi,
   Does anyway have the solution for the same.

Thx