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
salesforcequestions123salesforcequestions123 

Apex to wsdl arrays giving errors

Hi All

 

I am getting response to these classes in soap format and everything is fine

 

public pagereference GetAssessmentTypes()
{

String SecurityCode='..............................................';
double ScorecardID=-1;
double DepartmentID=4994;
as3 = new prophecyconnect.ProphecyConnect_cfc();
string assesstypes=as3.GetScorecard(SecurityCode,ScorecardID);
system.debug('...................'+assesstypes);
return null;

}

 

 

 

 

but getting error for these

 

public pagereference UnarchiveScorecards()
{
string[] addlist1=new string[]{'1212'};

 

 

String SecurityCode='.................................................';

string[] ScorecardIDs=addlist1;
as3 = new prophecyconnect.ProphecyConnect_cfc();
string[] userupdateresponse=new string[]{as3.UnarchiveScorecards(SecurityCode,ScorecardIDs)};
system.debug('...................'+userupdateresponse);
return null;
}

here there is an array to send so i took an array and sent the request for which i am getting html response instead of soap how to resolve the issue

 

for all the array elements i am getting the same isue and working fine for non array classes