请帮忙!!
将字符串列表作为参数发送到 webservice 的正确方法是什么?
列出<SObject> ObjectContents;// {得到; set;} 包含所选对象的记录列表 str3 = new List(); 字符串格式化值;
for (SObject a : for (SObject a : ObjectContents)) // for (SObject a : ObjectContents)
{
for(String field:fieldApis){ // fieldApis contains list of fieldnames
FormattedValue = '\'' + a.get(field) + '\'' ; //fetches value of each field
}
str3.add(FormattedValue );
}
//sending data to webservice
sqlArray19.ArrayOfstring a= new sqlArray19.ArrayOfstring();
SQLServerConnector9.BasicHttpBinding_IService1 stub = new SQLServerConnector9.BasicHttpBinding_IService1();
//sqlArray19 和 SQLServerConnector9 类是在将 wsdl 导入 Salesforce 时形成的
List<String> insertMsg = stub.InsertQuery(str3); // getting error in this line
"Compile Error: Method does not exist or incorrect signature: [SQLServerConnector9.BasicHttpBinding_IService1].InsertQuery(LIST<String>)"
.net 网络服务,它将从 Salesforce 获取值并返回这些值
public List<String> InsertQuery(List<String> Values)
{
return Values ;
}