How to invoke a list of parameters and a string parameter
URL wsdlLocation;
String messaggio="";
try {
wsdlLocation = new URL("http://localhost:8080...................................?wsdl");
String ns = "http://impl.businesslogic/";
QName serviceName = new QName(ns, "ServiceBL");
QName port = new QName(ns, ServiceBLPort");
QName operation = new QName(ns, "executeService");
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(wsdlLocation, serviceName);
Call call = service.createCall(port, operation);
Object rispostaWS = call.invoke(new Object[]{new List<String>command, new String(ID)});
messaggio = (String)rispostaWS;
this is my method but throws error.