检查 Visual Studio cmd 及其在 WCF 测试客户端中不支持的 WCF 操作,因为它使用类型 system.object[]
public object[] getAllClientApps(string client_name)
{
object[] msg = new object[2];
try
{
string sql = @" SELECT [application]
FROM #portal.[dbo].[ix_clientApplications] inner join #portal.[dbo].[ix_clients] on #portal.[dbo].[ix_clientApplications].clientID
= #portal.[dbo].[ix_clients].client_id Where #portal.[dbo].[ix_clients].client_name='{client_name}' and #portal.[dbo].[ix_clientApplications].application not in('sys','dev','gsa')
and #portal.[dbo].[ix_clientApplications].updateAvailable=1 ;
SELECT [clientId], appName, [licenseType]
,[licenseExpiry]
,[isExpired]
,[machineId]
,[svr_appCustomJson]
FROM #portal.[dbo].[ix_licensedClientApps] where clientId=( select client_id from [inxPortalV4].[dbo].[ix_clients] where client_name='{client_name}')
";
sql = tools.getQueryWithDbName(sql);
sql = sql.Replace("{client_name}", client_name);
System.Data.DataSet dsData = dbUtil.ReadDataSet(sql);
string arrClntApps = inx.portal.common.tools.table2Json(dsData, 0);
string arrClntNewAppsData = inx.portal.common.tools.table2Json(dsData, 1);
msg[0] = arrClntApps;
msg[1] = arrClntNewAppsData;
}
catch (Exception e)
{
throw (new Exception("" + e));
}
return msg;
}