You need to sign in to do that
Don't have an account?

How to use a class of type Arrayof arrayof string generated from wsdl to make callout in salesforce.
Hello,
Can anyone pls help.
I wana make callout to a function whose return type is ArrayOfArrayOfstring
public class sqlArray { public class ArrayOfstring { public String[] string_x; private String[] string_x_type_info = new String[]{'string','http://www.w3.org/2001/XMLSchema','string','0','-1','true'}; private String[] apex_schema_type_info = new String[]{'http://schemas.microsoft.com/2003/10/Serialization/Arrays','true','false'}; private String[] field_order_type_info = new String[]{'string_x'}; } public class ArrayOfArrayOfstring { public sqlArray.ArrayOfstring[] ArrayOfstring; private String[] ArrayOfstring_type_info = new String[]{'ArrayOfstring','http://schemas.microsoft.com/2003/10/Serialization/Arrays','ArrayOfstring','0','-1','true'}; private String[] apex_schema_type_info = new String[]{'http://schemas.microsoft.com/2003/10/Serialization/Arrays','true','false'}; private String[] field_order_type_info = new String[]{'ArrayOfstring'}; } }
and this is my function
public sqlArray.ArrayOfArrayOfstring outputForSelect(String query,String databasename) { Connect6.outputForSelect_element request_x = new Connect6.outputForSelect_element(); Connect6.outputForSelectResponse_element response_x; request_x.query = query; request_x.databasename = databasename; Map<String, Connect6.outputForSelectResponse_element> response_map_x = new Map<String, Connect6.outputForSelectResponse_element>(); response_map_x.put('response_x', response_x); WebServiceCallout.invoke( this, request_x, response_map_x, new String[]{endpoint_x, 'http://tempuri.org/IService1/outputForSelect', 'http://tempuri.org/', 'outputForSelect', 'http://tempuri.org/', 'outputForSelectResponse', 'Connect6.outputForSelectResponse_element'} ); response_x = response_map_x.get('response_x'); return response_x.outputForSelectResult; }
Please help.
Thanks.
Urvashi.
sqlArray.ArrayOfArrayOfstring
Thanks,
Samba