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
JacobusJacobus 

Add array list response from web service call

Hi,

I am trying to read the array list of a web service response.
Lets say this is my web service declaration.
FAMExternalWebservice.SumbitReleaseFromThirdParty stub = new FAMExternalWebservice.SumbitReleaseFromThirdParty();
and this is to call the web service method generated from the wsdl2apex
FAMExternalWebservice.ArrayOfGenericListItem insurers = stub.GetSalesForceInsurersDDL();
This would return an arraylist of insurers.
I want to now put this in a map or list which I can read from?

Thanks 

 
Puru AnnamalaiPuru Annamalai
Hi,

You can just iterate this "insurers" , and put it into a WRAPPER(https://developer.salesforce.com/page/Wrapper_Class) Collections, then you can use this WRAPPER collection for displaying it in VF or any other DML Operations and so on.