Questions tagged [wcf-web-api]

The WCF Web API project allows WCF developers to expose their APIs via HTTP. Under ASP.NET MVC4, WCF Web API has become ASP.NET Web API.

The WCF Web API project focuses on allowing WCF developers to expose their APIs for programmatic access over HTTP by browsers and devices. With the release of ASP.NET MVC4, WCF Web API is now ASP.NET Web API.

Project Links:

269 questions
0
votes
1 answer

Convert MVC WebAPI controller to WCF service

I have to replicate a MVC4 WebAPI application but mine will just echo the data being sent to it, so I'm wondering if I should just go with a simpler WCF service, because MVC4 WebAPI application has lots of files. The exposed API is very…
tunafish24
  • 2,288
  • 6
  • 28
  • 47
0
votes
1 answer

Consuming Web Api's as HttpPost

Can somebody help me how to post an array of type long to a WebApi. I think I have to use PostAsync from HttpClient, but I am not sure how to put array to HttpContent. This is my controller. [HttpPost] [Authorize] public void…
0
votes
1 answer

Equivalent of WCF UriTemplate in ASP.NET MVC4 WebApi

Am migrating a WebApi project (from preview version aka WCF WebApi to final release aka ASP.NET MVC4 WebApi). In WCF WebApi, URI templates were defined for all services operations, like: [WebGet(UriTemplate = "{movieGenreId}/movies")] Bare I mind I…
kabaros
  • 5,083
  • 2
  • 22
  • 35
0
votes
1 answer

Migration from WCF WebApi to MVC4 Api - Registering global error handler

I am migrating a project that was developed using WebApi Preview 5 (when it was part of WCF) to the final release of WebApi (part of MVC4). There is a document describing the process but it is extremely simplistic and doesn't cover most of the…
kabaros
  • 5,083
  • 2
  • 22
  • 35
0
votes
1 answer

Wcf WebApi configuration equivalent to code

I have this configuration for a WebApi service in code that runs on Application start: var configuration = new WebApiConfiguration { Security = (uri, binding) => { binding.Mode = HttpBindingSecurityMode.TransportCredentialOnly; …
kabaros
  • 5,083
  • 2
  • 22
  • 35
0
votes
1 answer

ASP.NET MVC 3 upload file maximum size

I am trying to upload large files using ASP.NET Web API controller I am able to upload until 2 GB. But for more than 2 GB I am unable to upload. Is this a limitation of the Web API controller and ASP.NET? Should I make any configuration changes?
user1400915
  • 1,933
  • 6
  • 29
  • 55
0
votes
1 answer

Web API without using ApiController

I'd like to use new MS Web API without having to inherit from ApiController Ideally I'd like to create separate classes that handle only one HTTP Method and Route. For example: // Handles GET /customer/1 public class GetCustomerHandler { public…
Andrew Davey
  • 5,441
  • 3
  • 43
  • 57
0
votes
0 answers

HttpContext.Current.Items being stepped on? Data scoped in a request

I'm working on a REST API built with WCF WebApi Preview 6. This is for a multi-tenant application and consumed by different clients (web and mobile applications). There are certain resources on this API that requires authentication in order to…
Raciel R.
  • 2,136
  • 20
  • 27
0
votes
1 answer

Integrating Castle Windsor in ASP.NET MVC 4 WebApi

In WebApi 0.5.0, I would just define a new WebApiConfiguration, and register the CreateInstance method - this appears to have gone away in WebApi 4 (the current version that comes with ASP.net MVC 4). How do I integrate Castle Windsor (or any other…
Adam
  • 4,159
  • 4
  • 32
  • 53
0
votes
2 answers

WCF Webapi UriTemplate with file extension works local but not on IIS7

I have a WCF WebApi Rest service that has the following endpoints: [WebGet(UriTemplate = "{id}")] and [WebGet(UriTemplate = "{id}.pdf")] The first endpoint returns JSON and the second endpoint returns a pdf. Both of these endpoints work in my…
Hai Nguyen
  • 4,059
  • 1
  • 20
  • 16
-1
votes
1 answer

How to Insert data android to C# restfull webservices

I tried to connect cross platform Android to C# wcfrestfull webservices My Que. How to insert data Android to Wcfrestfull webservices?
Amit Jesani
  • 155
  • 2
  • 9
-1
votes
1 answer

System.NotSupportedException

I have been getting this "System.NotSupportedException" exception for a while now, I ran out of options. I get this error when I try to access the findAllUsers() funtion from my browser. I have model class: Public Class pUsers Public Property…
kilojoules88
  • 51
  • 1
  • 11
-2
votes
1 answer

How to send automatic scheduled emails

There is an ASP.net C# web application through which we can get the recipient emails, time zone and their smtp server details in to the database.I have two requirements: 1. Consider a table in the database. When ever there is a change in the table,…
-4
votes
1 answer

How To Do CRUD Operations in WEBAPI in asp.net using AJAX

I would like to perform CRUD Operations on WEB API in asp.net using AJAX JQuery.I am very new to web api
1 2 3
17
18