How to make the odata C# client refresh?
Hi,I'm working with odata stuff recently. Here I met a strange problem, I have a Odata service which provides some entities, and I have a C# client to view these entities and make some changes on them....
View ArticleCan I use Sync Framework in a Web Service to Sync data between SQL Server and...
I have an ASP.NET Application. I need to sync its data to an Third party application like Connectwise or Quickbooks using its API whenever i create a ticket in my ASP.NET application or in in the third...
View ArticleLogin using Goolge OAuth 2.0 with C#
I want to allow User to login using Gmail. So, I googled and got many samples but all were using OpenID and as I have checked Google Documentation, they have stopped new domain registration for OpenID...
View ArticleAuthenticating both MVC and API - Dreaming too big?
Hi Guys,To start off, not an experienced developer, have done some projects in the past, but the past is way back in the past. For the past year I've had an obsession to actually manage and develop a...
View Articlequestion about web api help page
Dear all,When I create a help page for web api in MVC 4. and when I map the route to "api/{namespace}/{controller}/{action}/{id}", I can not get the api descriptions,I get 0 count in...
View ArticleAccess control (Authentication/Authorization) design for asp.net web form +...
I'm having hard time in deciding an approach while implementing Authentication/Authorization scenario for my Web API (Service) - web form (client) architecture project.Architecture overview:Projects...
View ArticleServices logging for every service invoke.
Hi All,I had created WebApi application for some personal management system, its working fine, but i want log some information for every invocation likeuser id, what type of services(POST, GET, DELETE,...
View ArticlePOST to API from WP8
Hi,I'm having no success whatsoever trying to POST into this BooksController [from: http://www.asp.net/web-api/overview/web-api-clients/calling-web-api-from-a-windows-phone-8-application#STEP1] :- ///...
View ArticleOne route, two controllers with different first pararmeter
I have basic route for my web apiconfig.Routes.MapHttpRoute(name: "DefaultApi", routeTemplate: "{controller}/{id}", defaults: new { id = RouteParameter.Optional} );I have two controllers for two...
View ArticleASP.NET MVC 5.2, Web API 2.2 and Web Pages 3.2 Release Date
Hi Guys!There is release candidate for the subj.Are there any ideas when release will happend?Do you think it is good idea to start using WebApi 2.2 now?The main feature we're interested is T4 template...
View ArticleWeb API object name included json reponse
Hi Guys, I am working with Web Api and Ember JS, all worked well until i started using Ember Data, which seems to need the object name included in the json. How can i add this? Currently getting : [ {...
View Articlelearn web service
I want to learn web service, especially REST and Json. I found a book (Professional Ajax) publised in 2006. Is it out-of-date? Can someone recommend some basic self study examples for beginners?...
View ArticlePassing complex types to a GET operation
Hi,I thought I read somewhere that it is possible to send a complex type to a GET opertation, but I can't find the specifics.When I want to do, is expose a URI of say, api/products/, but rather than...
View ArticleAccess is denied to XMLHTTPRequest
hello,I am writing a handler to send json string to my server. I am then trying to append a file with the string which will be picked up later and uploaded to a database. I am running into issues...
View Articlesecure web api using saml authentication in identity server
How to secure a webapi using saml authentication in identity server,and i want to access the secured webapi from my MVC application with one time log in (singlesignon) that means if i log in into my...
View ArticleExceptions in ASP.NET Web API custom exception handler never reach top level...
I have created a custom Web API global exception handler like this:public class MyGlobalExceptionHandler : ExceptionHandler { public override void Handle(ExceptionHandlerContext context) { // here I...
View ArticleHow to provide the Handlers for delegating the route. Handlers is working...
The following is my WebAPI.Config.cs configuration settings//Attribute routing.config.MapHttpAttributeRoutes();var handlers = new DelegatingHandler[]{new AuthenticationHandler()};//Create a message...
View ArticleMethod Not found exception
Hi All,I am trying to pass some data from json to web api controller. But I get the exception as "Method not found". In couple of other sites I see the solution is by adding tags:<modules...
View ArticleGET and POST from same controller
I would like to be able to call GET and POST request from the same url (api/test...), but I am currently getting current context error on the following line of...
View Articlehow to execute an stored procedure using web api
Hi ,I want to know how to execute a stored procedure using web api which is connected by ado .net entity model..thnks in advance
View Article