Skip to main content
2 of 2
Init the internal list/array
Daniel Ballinger
  • 103k
  • 40
  • 275
  • 601

The apex class for ArrayOfSalesforceChangeType will appear something like:

public class ArrayOfSalesforceChangeType {
    public ApexClassForWSDL.SalesforceChangeType[] SalesforceChangeType;
    private String[] SalesforceChangeType_type_info = new String[]{'SalesforceChangeType','http://webservice/api','SalesforceChangeType','0','-1','true'};
    private String[] apex_schema_type_info = new String[]{'http://webservice/api','true','false'};
    private String[] field_order_type_info = new String[]{'SalesforceChangeType'};
}

You will need to add the records to the SalesforceChangeType member.

E.g.

TriggerService.ArrayOfSalesforceChangeType changes = new TriggerService.ArrayOfSalesforceChangeType();
TriggerService.SalesforceChangeType change = new TriggerService.SalesforceChangeType();
changes.SalesforceChangeType = new List<SalesforceChangeType>();
changes.SalesforceChangeType.add(change);
Daniel Ballinger
  • 103k
  • 40
  • 275
  • 601