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
john3john3 

error on webservices

Hi i am new apex and web services.

 

i am trying to getresponse from webserivces but i am getting error like below,

 

System.NullPointerException: Attempt to de-reference a null object
 

Class.smk.tempuriOrgTaxwareserviceTaxwareservic.TaxwareServiceSoap.OpenFiles: line 114, column 41 Class.smk.openfiledemo.getresponse: line 18, column 12 External entry point

 

and my class is

 

public class openfiledemo{

Account acc;
 
tempuriOrgTaxwareserviceTaxwareservic.TaxwareServiceSoap stub =
       new tempuriOrgTaxwareserviceTaxwareservic.TaxwareServiceSoap();   

String response;

public openfiledemo(ApexPages.StandardController stdcontroller){

this.acc = (Account)stdController.getRecord();
  
}

public String getresponse(){

response = stub.OpenFiles();
system.debug('Test Reponse>>>>>>>>>>>>>>>>>>>>>>>'+response);                                                    
return response;
}

}

 

 

and wsdl class line 114 is

 

system.debug('output is>>>>>>>>>>'+ response_x.OpenFilesResult);

thank you