Background:
As an example, let's put the calculatorServices
class from the Apex SOAP Callouts Trailhead Unit on the table. Considering any of the inner classes, for instance doAdd
:
public class doAdd {
public Double arg0;
public Double arg1;
private String[] arg0_type_info = new String[]{'arg0','http://calculator.services/',null,'0','1','false'};
private String[] arg1_type_info = new String[]{'arg1','http://calculator.services/',null,'0','1','false'};
private String[] apex_schema_type_info = new String[]{'http://calculator.services/','false','false'};
private String[] field_order_type_info = new String[]{'arg0','arg1'};
}
There are always 3 types of type_info variables:
- element-specific (
arg0_type_info
,arg1_type_info
etc.) apex_schema_type_info
field_order_type_info
All of these are described by elements of String
arrays.
Question:
Does anyone know what's the description/names/meanings of each of these array elements? I couldn't find anything among SF documentation, SF blogs or other SO posts.What I've got so far:
- first array element in
ELEMENT_type_info
is basically its name - second array element in
ELEMENT_type_info
is eithertns
ortargetNamespace
- first array element in
apex_schema_type_info
is eithertns
ortargetNamespace
field_order_type_info
array's meaning is obvious
The reason behind my question is that due to WSDL2Apex generator limitations I'm forced to write my own Apex SOAP classes manually (inb4: yes, I saw FuseIT generator, it crashes for my WSDL). I have managed to write some basic (and working!) code already, but I'm not sure if leaving all these null
, '0'
, '1'
, 'false'
values is fine or I should change some of them due to things I'm just not aware of.
Any help appreciated, thanks :)