• Ashwini Khot 16
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
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