WCF测试客户端不支持WCF操作,因为它使用类型system.object []

时间:2012-10-25 15:34:52

标签: asp.net .net wcf

检查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;
            }

0 个答案:

没有答案