Web API Get - Calculate Totals
I am new to Web API and trying to use JavaScript to call Web API GET to calculate the discount from the text boxes when the submit button is clicked.So far I have the following in the...
View ArticleWebservice for online source compilation
I am working to develop an online judge project in asp.net . I wish to know if there is any web services which lets users upload their source file and gives compiled output.
View ArticleHow to implement OData 4.0 compatible endpoint using ASP.NET Web API 2.2 ?
How to implement OData 4.0 compatible endpoint using ASP.NET Web API 2.2? Can someone share some tutorial/sample?
View ArticleJSON Data
I created a WebAPI which returns a Dictionary object.The return JSON data is adding lot of extra JUNK to my data. How to overcome the junk data?{"residents": {"<title>k__BackingField":...
View Articlebest way to call web api methods with IHttpActionResult type as return value
Hi,what is the best way of calling following web api method? As you can see here actual return type is IEnumerable<Person> type.public IHttpActionResult Get() { try { return...
View ArticleWebAPI2 and OData SPA application works on local but not on the DEV server !!
Hello,I have developed a web api 2 service providing ODATA endpoints reading a database on Azure from a SPA Javascript application using JQuery, JsViews and DataJS.It worked well on my first...
View ArticleHow do I return JSONP when requested?
I am using the Web API 2 - REST/JSON controller (which BTW makes writing a REST server trivial - awesome).I'm now hitting a problem. When I make a JSONP request, I think my server is still returning...
View ArticleactionContext.Request.Headers.Authorization keeps returning null When passing...
I have created a Web APi using MVC4. When i send my request to the server with Authentication it is not seen in the headers server side. This is using WP8 Emualtor: Windows Phone CODE:WebClient...
View ArticleRouting in Web Api for Get() method's overload
I have following code in my Asp.Net web api controller class MyController:ApiController { public returntype1 Get(string somevalue) { } public returntype2 Get(string somevalue, int id) { } }And the...
View ArticleWeb API - Azure ACS issue
I am converting an app to use Azure ACS and Web API. My controller has a a bunch of routes that would be something like api/[foo]/items/[userid]. When you look at the actual userids are strings like...
View Articlewhat is the best way to create login page with web api 2
I've searched around and haven't really found a clear answer for my question : "what is the best way to create login page with web api 2 "Any help is greatly appreciated, thanks.
View ArticleDeploying MVC project with Web API service not working
Using Visual Studio 2012, I created a new MVC 4 web application. I then used Manage NuGet packages to install Web API 2.1 in my project. After creating a new controller and adding a web form, I...
View ArticleFrom SOAP(WSDL) to rest with Web Api
In the days of soap I would create a struct and return it in a web call. The client would read in the wsdl and from that document, it would know the attributes in the struct.For examplestruct...
View ArticleHow To collect IOPN from payment gateways
Hello I am unable to identify where I am mistaken as Trying to collect data Instant payment notification from Checkout by Amazon.The question is how to recieve http post request made by CBA on our...
View ArticleDefine IHttpRouteConstraint per RoutePrefix
Hi,is there a way to register a IHttpRouteConstraint for a RoutePrefix, so that the Contraint is used for all routes that are based on this prefix?Wishes,Manfred
View ArticleWeb API 2 - turn on gzip for REST/JSON
Hi;I have a REST/JSON server running fine using Web API 2. But I think it is not providing gzip if asked. (I say "I think" because I may have something wrong in my JQuery call.) Is there something I...
View ArticleTimeout expired. The timeout period elapsed prior to completion of the...
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated.How to solve this problem
View ArticleHow to manipulate JSON in web api 2012
I am beginner with web api and json I am building Web Api services that verify if username and password exist in my data base or no. and return for me "ok" if it exist"false" if not exist but i...
View ArticleWeb API gets called but response is always an error "Unexpected token "
Hi,I am running into an issue retrieveing the result from web api. My web api service gets called perfectly but it returns error message saying "Unexpected token"error. When the html page (caller of...
View ArticleSelf Host Web Api in Desktop Application, error 404
Hello,I have some problem to start my project. I want to make a console application wichc host a web api.And when i make a copy past from some tutorial, i'll always have a error 404... I don't knwo...
View Article