Microsoft Translator API work using console, not working in MVC
I have been able to get the Microsoft Translator API to work with creating a console project. I could only find examples with using console projects.1) Console working2) MVC controller executing the...
View ArticleJArray creates empty JSON objects
Dear All, I have a web API application which brings a list of users with their expenses details. everything retrieved properly. But, it creates empty JSON object when data added into JArray. Please...
View ArticleNeed Complete Voice emotion list
hi,i need complete voice emotion list for recognising voice automatically and display the result. using some API.here is the some sample emotion list.here im using beyond verbal API. they mentioned...
View ArticleFormatting HTTP Response Messages
Hello All,I am creating a web api to feed data into an instant messaging system provided by a Third Party. So far i have been able to get the commands working from within the messenger but i am having...
View ArticleWebApi
If I have an existing database , which approach should I follow for making WebApi calls for CRUD operation? Code-First,Database First or Model First?
View ArticleConecting to web api
SO I'm trying to connect to a web API - according to their documentation: > Before you perform any operation, you first need to log in. > Send this HTTP request for login: > POST...
View ArticleAuthenticate user in case of Restful Service
Dear All,Kindly suggest me in following question.What are options to authenticate a user in case of REST style services? What is most recommend way if there are more than one and why? How to pass user...
View ArticleUnable to retieve the request from HttpActionContext
Hello,I have written a custom Filter derived from ActionFilterAttribute.public override void OnActionExecuting(HttpActionContext actionContext) { string rawRequest; using...
View ArticleService Layer with WebApi
I am starting to work on a new project so working on laying on the architecture at this moment. So basically we want to keep a service oriented architecture using MVC web api. So I had the following...
View Articlepass object to ASP.NET MVC WebApi
Hi every oneI try to pass a class object to method like this:public bool Add(tbl_years year) { YearRepository bl = new YearRepository(); if (ModelState.IsValid) { if (year.yearStart != null &...
View ArticleHow To Test Web Api Locally with Mobile Phone
Hi, I have created Web Api project and now I would like to know how to test the Web Api with Mobile Phone (Android/iOS).How to set up the Testing environment for this.Thanks
View ArticleASP .NET Web API ADFS SAML Token
Hi all,I am basically trying to achieve the same as in this linkIn my case I have a Relaying party Trust registered in my ADFS (ADFS 3.0).An external application (Mobile) authenticates with the ADFS...
View ArticleWeb Api trouble
Hello Everyone,For my assignment I need to allow a browser help object access my web api that I've created. I've tried every way imaginable. One a website that I have to access, my www.myuhc.com my...
View Articleoauth by batch
I have one scenario. We are using web API for b2b integration. Most of the time we have console application as a client and do POST/GET/PUT periodically. Now we want to do OAuth before access APIs, I...
View ArticleGet Http Raw Request and Response
Hi..What is the exact and besth method to get full http raw for request or response..i used delegatinghandler but on response it does not get all headers send.
View ArticleSave image file with other model data in web API
I need a sample WEBAPI which can save a model data in DB.This model contain data like imageurl,Name,Id,etc.The image url should save in DB with name and id while the image should save in project folder.
View ArticleHow Posting JSON object to webapi
Hi,I have a requirement to post following type of json object in payload of webapi. In am using .Net 4.5.Can anyone help me to find out{"ABC" : { "Id": 123 "2017-08-25" : { "rate": 12.5...
View Articlefunction in apiController vs function in class
I have an ApiController classlike this.public class BaseApiController : ApiController { ... [NonAction] protected string GetHash(string input) { return string.Join("", (new...
View Articlehow to upload large data by chunks using WebApi 2
hello,i'm using angularJs plugin to upload .mp3 files.Demo: http://nervgh.github.io/pages/angular-file-upload/examples/simple/plugin : https://github.com/nervgh/angular-file-uploadthe above plugin...
View ArticleHow to resolve - Expecting element 'root' from namespace ''.. Encountered...
I'm trying to parse the JSON response with the following code:...WebResponse webResponse = request.GetResponse();using (Stream responseStream = webResponse.GetResponseStream()){ if (responseStream...
View Article