You need to sign in to do that
Don't have an account?
SFDC Forum 9
WSDL2apex in lightning
While migrating classic code to lightning, i have come across below issue.
wsdl2apex based apex class is not being called when i run the code from lighntning, same wokrs in classic, please help asap
wsdl2apex based apex class is not being called when i run the code from lighntning, same wokrs in classic, please help asap
Can you share more details on how you are running the code in lightning VS classic? Do you see any error messages? Are there any hardcoded values in your code? When you execute the class from the developer console, what is the result? Thanks
public with sharing class RSG{
//some code
public String getMethod(){
//
AsyncNarrativeUtil asyncNarrativeUtil = new AsyncNarrativeUtil();
}
Second class :
public with sharing class AsyncNarrativeUtil {
//some code
public final static string theStaticEndpoint = setupTheEndPoint() ;
public final static outerclass.innerclass FFGEServiceAsync = setupWSCall();
//some code
@AuraEnabled public outerclass.innerclass participantFormDataAsync{get;set;} ----**this is not getting initialised and throwng null value
public static outerclass.innerclass setupWSCall() {
//somecode
}
}
Third class
//Generated by wsdl2apex
public with sharing class outerclass{
//few more inner classes
public class innerclass extends System.WebServiceCalloutFuture {
public AnotherOuterClass.AnotherInnerClass getValue() {
AnotherOuterClass.AnotherInnerClass response =
(AnotherOuterClass.AnotherInnerClass )System.WebServiceCallout.endInvoke(this);
return response.participantFormData;
}
}
}