Data sent throug PushStreamContent is recieved with delay
I use PushStreamContent class in ASP.NET for implementing SSE server.response.Content = new PushStreamContent(new Action<Stream, HttpContent,...
View ArticleHow to generate Excel file using Post Method...?
Hi all,Can anyone help to create and download Excel file Using WebApi Post mothod.Thanks in advance..!!!
View ArticleCommon Class to check HttpStatusCode
All,I would like to return some HttpStatusCode (e.g. OK, Created, Accepted, Unauthorize, Not Found, RequestTimeout and InternalServerError with msg) in Controller. Since I have multiple methods in...
View ArticleWeb API OData $filter query string too long problem
hi all,I m doing a simple job portal project now.I face a problem about query string too long, when i try to filter job by multi select job specializationse.g. : ~/api/jobs?$filter=jobSpecialization eq...
View ArticleActionFilterAttribute
I am using a ActionFilterAttribute in my WebApi to validate modelstate. Essentially validate the incoming model on a HTTP POST.public class ValidateModelStateAttribute : ActionFilterAttribute { public...
View ArticleHTTP POST: Message Handler Issue plain/text
We have developed an HTTP Message Handler Server, that we will be using to receive and capture messages from remote devices via HTTP POST. The posts come to the system as a string (text/plain) format....
View ArticleCan i replace Asp.net WEBAPI to TCP call on any port
Hi developers and experts,i am preparing a asp.net web Api in c#, which is accessible via http request.Now i a planning to remove the functionality of Http call and want to start TCP call from the...
View ArticleHow can POST multi parameters?
Hi, I would like to post multi parameters to the method but I fails. public class login_in { public string user_code { get; set; } public string user_password { get; set; } } public login_return...
View ArticleOdata Query against NOT database
Hi :)I'm working on a Web API that should support Odata queries. The only thing is that I have this concern:When I'm just Odata enabling my datasource (that is from Active Directory over...
View ArticleCan I switch to an existing (I think) HTTPContext handler?
I have a class that is creating and downloading a PDF file. If I call this class from my c# codebehind, it works like a champ. If, however, I try to call it from a Web Service, it simply does...
View Articleuse SAML as a bearer token in webAPI SPA
We have a legacy application which uses the Windows Identity Framework, written around 2010-2011. Users authenticate by logging into a client portal, which then sends a saml token to our...
View ArticleDatePicker in IE
I am developing an application that uses Datepicker in a textbox for Release date using MVC4. I used the following code in my model class [DataType(DataType.Date)] [DisplayFormat(DataFormatString =...
View ArticleWebAPI - CORS
I'm at a loss, I', having some issues when accessing a WebAPI that I created on my web server. I read and went through the changes for the CORS found...
View ArticleIQueryable add serverside filter
Hi!Standard Web API code was generated when I added the Controller, and I have added a line for getting the Identity of the user. I now want to filter out the records based on the Identity:// GET:...
View Article.net API
Hi All Developers ..I want to detect the API's running on my web service ..Is Reflection method cant help me .if yes then in what ways ..
View Articleweird api error
Hi, I am using echarts to display some data. It gave me error "api/echart_test has not been required.", while using jquery ajax to retrieve from api. but I can see the data from console I attached the...
View ArticleLoad test a WebAPI
Hi,I have a WebAPI hosted on a centrally located server. I need to know how I can use Load test Project and load test this API using code instead of the load test wizard?Is there any separate forum on...
View ArticleWeb api and token configuration
suppose i have web api project where request will come from client but i like to know how could i authenticate user ?in asp.net we provide user id and pwd and then asp.net validate it against db and...
View ArticleWebAPI & SignalR-Token Authentication - Authorizing SignalR Hubs
I have a WebAPI solution and I use token authentication, so the flow is the following:user tries to login using the username and password if the credentials are correct, he is given a token in order...
View ArticleWebAPI protected resource for adding/editing/deleting scenarios
I have the following setup WebAPI hosted on IIS with OWIN token authenticationwith the following scenario:users have a personal resource like, let's say profile that only they can edit;in my...
View Article