You need to sign in to do that
Don't have an account?
cloudSavvyProg
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
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
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
Does anyway have the solution for the same.
Thx