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

.NET web application w3wp.exe issue

Hi Guys,BACKGROUND:We have one old .net web application.It having simple .aspx pages and one master page.Working in dev as well as production very well...NEW FEATURE:For some reason, we wanted to build...

View Article


AJAX Call to Web API fails since JQuery is ignoring Subdirectory in base Url

I have a MVC Web Application with some Web APIs.  In the Views I have implemented the Ajax Call to this Web APIs my problem is when I publish my application in a Subdirectory:$.ajax({       url:...

View Article


Self-host Websocket - Web API vs OWIN Middleware

I'm running an OWIN self-hosted application that hosts a REST API and also allows websocket connectivity for real-time data. I'm using Web API to handle the routing and mapping of routes to...

View Article

External facing web api

Hi,I have created a Web Api which I have published and put the published files/folders in a folder created in wwwroot and added it to an IIS site (e.g.http://myweb:122). I can access the api function...

View Article

How to pass query string in case of web api call

tell me how web api function would look like where query string data will be deserialize and also tell me how to pass query string to web api function from client side.thanks

View Article


Web api parameter binding with [FromBody] and [FromUri]

i got a write up on [FromBody] and [FromUri] from this link http://stackoverflow.com/a/24629106/728750When the ASP.NET Web API calls a method on a controller, it must set values for the parameters, a...

View Article

Can we decorate any action with both [HttpPut] and [HttpPost]

tell me Can we decorate any action with both [HttpPut] and [HttpPost][HttpPut] and [HttpPost] int  MyMethod() { }

View Article

how to sync/replicate latest data between server?

say example, we have multiple store which are using window applications. Each store has its own database. Then now, we want to create a new web applications with one centralized database. Question is...

View Article


Web api 2 and Web api 1

I have 2 server.Server 1 has .NET 4 and web api 1.Server 2 has .NET 4.5 and web api 2.Can web api 1 make a REST request to web api 2?Can web api 2 make a REST request to web api 1?Thanks.

View Article


Live chat application in angular js using asp.net web api

Maintain the active usersMaintain authorization and authentication in asp.net web apisending group message or send to single person 

View Article

WebApi 2 with custom model binder and action filter attribute

Hi, I'am currently developing a web api where i need a custom model binder(create my model from data in the uri and header), a value provider(to get values from header) and also an action filter(to...

View Article

How to call different read functions from web API to windows forms application?

I have a windows forms application that when a form loads, the web API retrieves data and sends it to the form. I have 2 GET functions in the API but I don't know how to call the 2nd one. Only the 1st...

View Article

OData expand functionality question

Currently building a web service for work and I need some advice/help. The two related entities are Sites and Site Records (Site records being a entity collection inside of Site). There is a Boolean...

View Article


Requested Resource Does Not Support HTTP Get

I am trying to implement OAuth2 in my Web API 2 by following the tutorial below:http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/This tutorial is quite...

View Article

Create JSON by ignoring a few properties of a class

Hi,I need urgent help. I would like to create the following structure in JSON using C# in a WebAPI:{"locations": [ {"latitude": 19.0844,"longitude": 72.8360 }, {"latitude": 19.0830,"longitude": 72.8406...

View Article


Getting an error trying to display data sent in a DataTable in windows forms...

I have a method in my windows forms application that gets a datatable from the web api and makes it as a source for a dataGridview. Here's the code of both the api & windows appl...

View Article

DataAnotations with custom ModelBinder not working

I'm having trouble getting my ModelState to validate on a custom object on a ApiController action.  My method is called and the object is bound (using my custom binder) but all of the data anotations...

View Article


login page in C# - postman

hi ,its the first time I am working with postman... i have Postman "POST" login address(web-service) in the postman "post" login i see : {"UserName": "NNNNN", "Password": "55555", "CompanyDB":...

View Article

Why Rest is called architectural pattern

please discuss with example that why Rest is called architectural pattern ?in rest all action based on http verb....so is it the reason for which Rest is called architectural pattern ?or in rest url is...

View Article

Call webapi return list of object but can not cast to base type of object?

I have some class: public class Base {    public string Name; } public class AClass : Base {    public string AAtribute; } public class BClass : Base {    public string BAtribute; } I create WebApi...

View Article
Browsing all 4850 articles
Browse latest View live