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
SFDC Forum 9SFDC 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
SwethaSwetha (Salesforce Developers) 
HI,
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
SFDC Forum 9SFDC Forum 9
Main class:   This loads from lightning comp during init
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;
        }
    }
}
 
SFDC Forum 9SFDC Forum 9
Please assist ASAP
SFDC Forum 9SFDC Forum 9
Hi Swetha, please assist