// GET: api/Product public IEnumerable <string> Get() { try { ItemServiceClient ProductClient = new ItemServiceClient(); CallContext cc = new CallContext(); cc.Language = "es-mx"; cc.LogonAsUser = "******"; cc.Company = "PL"; QueryCriteria qc = new QueryCriteria(); CriteriaElement[] qe = { new CriteriaElement() }; qe[0].DataSourceName = "InventTable"; qe[0].FieldName = "ItemID"; qe[0].Operator = Operator.NotEqual; qe[0].Value1 = ""; qe[0].Value2 = ""; qc.CriteriaElement = qe; ProductClient.ClientCredentials.Windows.ClientCredential.Domain = "plcorp"; ProductClient.ClientCredentials.Windows.ClientCredential.Password = "******"; ProductClient.ClientCredentials.Windows.ClientCredential.UserName = "******"; //AxdEntity_SalesQuotationTable[] table1 = ProductClient.find(cc, qc); AxdEntity_InventTable[] table1 = ProductClient.find(cc, qc); /***/ } catch (Exception e) { return(new string[] { e.Message }); } return(new string[] { "value1", "value2" }); }