asp.net mvc - How to consume web API with authentication in Excel 2010 -


i have exmaple of mvc 4 web api , , want consume in excel 2010. whats easiest way it? thinking pass in username , password string parameter if solution need complicated.

        [authorize]         public class accountbalanceapicontroller : apicontroller         {             //http://localhost/ftaccounting/api/accountbalanceapi?companyid=16&fiscalyear=2012             public dictionary<int, trialbalanceaccountsummarymodel> get(int companyid, int fiscalyear)             {                 return accountbalance.gettrialbalance(companyid, fiscalyear);             }         } 

update: web service authentication not possible in excel. reference http://cwebbbi.wordpress.com/2012/07/31/using-the-webservice-function-in-excel-2013/

web service authentication not possible in excel. reference http://cwebbbi.wordpress.com/2012/07/31/using-the-webservice-function-in-excel-2013/


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -