Quantcast
Channel: Web API
Browsing all 4850 articles
Browse latest View live

ActiveSync-/Exchange-Server

hello,i want to provide my application-data as calendar-events to mobile devices. the mobile devices should use the standard-calendar and add my application just like a new exchange-account.therefor i...

View Article


Web Api 2 compatibility between VS2013 and VS2012

Hello,I have a Web Api 2 OData SPA application I would like to work on both my home PC with VS2013 and my Surface PRO where I was able to install only VS2012 since the latest version required more...

View Article


Should I put 100 routes or methods in 1 controller?

I'm coming from WCF where I'd put about 100 methods or contracts into 1 interface/file.  I'd personally like to have 1 large file than 100 small files.Is this frowned upon with WebAPI?  I guess i can...

View Article

swagger.Net in OWIN hosting

Query : How we can include the Swagger configuration in OWIN host.Is it possible to include the SwaggerActionFilter, IDocumentationProvider and "api/docs/{controller}" route to the HTTPConfiguration?It...

View Article

use HttpClient, WebRequestHandler with Net 4.0 causing deadlock?

When using HttpClient with .net 4.0, I am sometimes seeing task canceled exception when accessing the Task.Result property . See the sample code below. I have seen threads regarding deadlock on...

View Article


DeSerialization using Newtonsoft.Json - Assigning Default Values to Nulls...

DeSerialization using Newtonsoft.Json - Assigning Default Values to Nulls Parameters Class Structure public class HotelRoomResponse { public string rateCode { get; set; } public string rateDescription...

View Article

web api is calling MutableObjectModelBinder's methods even it is removed from...

I am new to Web Api.I have created a Child class from public class DIMutableObjectModelBinder : MutableObjectModelBinderand register this in App_Start in global config:...

View Article

Help in designing Web API controller

In existing LOB app, I added new Web API project. Because of existing layers in app (Domain objects,DAL-ADO.NET-DataReader, BLL), I decided to use the Web API by holding the existing logic.First...

View Article


Download of Excel file from SharePoint library is failing when tried over...

I have created a web api controller to download the excel file from the SharePoint library. The download of Excel file from SP library works fine when debugging the controller from VS using the inbuilt...

View Article


How to use Ninject with authorize filter?

Dear all, I have setup my Ninject using the following link below:http://www.peterprovost.org/blog/2012/06/19/adding-ninject-to-web-api/public static class NinjectWebCommon { private static readonly...

View Article

HTTP Web Request SSL Secure Channel exception

Hi,Currently i am working on posting Xml (HTTP POST), invoke certificate with password, below are my code:-string postXml = Xml Stringstring certificate_Path = "C:\\mycert\cert.crt";string...

View Article

Is it possible to upload binary file by using HTTPClient associate with WP8?

Hi,Is it possible to upload binary file by using HTTPClient associate with WP8?

View Article

ASP.NET MVC Web API two way mutual authentication

Is there a way I can send a certificate back to the client without using HTTPS on IIS? Is this possible? anyway we can accomplish this as in WCF.Here is the sequence of events:Client -> ServerClient...

View Article


Result with Json

Hi, I need help in this case.I have a link in web that return this value in Json:{"result":["Teste"]}In this case the result is a String class. How can I get this value ("Teste") in my application? Do...

View Article

FormURLEncoded media type formatter not working for complex type

Hello,I have the following ComplexType which I have defined on the PUT action for my controller as follows:    [DataContract(Namespace = "http://schemas.abc.com/formurl", Name = "ComplexData")]...

View Article


EntityState.Modified updates full row and throws exception if a value for a...

Hi allIn the PUT method(Users) when i try to update a user it throws an exception "Validation failed for one or more entities. See 'EntityValidationErrors' property for more details."This happens if i...

View Article

web request using httputhentication credential

hii am new to vb.net have an experience in c#now my problem is this in vb.net i want to make web request on one url which use httpauthentication module and return json result I have used all of simple...

View Article


Do I need to use Web api when doing CRUD operations in my MVC Project in my...

I have a latest news website on my homepage and it will be changed once there is a new item on my news table on my sql database, When my admin side do CRUD on the news table is it okay if i just CRUD...

View Article

Web Api Iqnore 1 property for certain method

Hi Guys,I have this line of codepublic void Create(AccountModel model)in AccountModel it's having public class AccountModel { public int Id { get; set; } public string Username { get; set; } public...

View Article

500 Server Error when trying to hit api works fine on browser

Hello I have an api which authenticates the user login . Now when I hit this rest service in my browser it displays the result but when I try to do this using my code it gives in 500 error. Please help...

View Article
Browsing all 4850 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>