wcf-web-api Questions
11
Solved
I have just installed the mvc4 rc update and I am trying to build an api application with little luck.
I am using ninject but cant get my controllers to load. I keep getting an error
Type 'Api....
Langan asked 1/6, 2012 at 11:8
8
Solved
The API I'm trying to call requires a POST with an empty body. I'm using the WCF Web API HttpClient, and I can't find the right code that will post with an empty body. I found references to some Ht...
Lauralee asked 26/10, 2011 at 19:13
11
Solved
I'm trying to POST a JsonObject using HttpClient from Web API. I'm not quite sure how to go about this and can't find much in the way of sample code.
Here's what I have so far:
var myObject = (d...
Azores asked 24/5, 2011 at 21:25
7
Solved
I'm developing a Web API, and one of the test I came up with is that, if client makes a GET operation with a Physical Test ID (Physical Test is the resource I'm looking for) and that physical test ...
Chitter asked 27/10, 2011 at 17:8
5
Solved
I'm trying to use an HttpClient for a third-party service that requires basic HTTP authentication. I am using the AuthenticationHeaderValue. Here is what I've come up with so far:
HttpRequestMessa...
Malka asked 9/4, 2012 at 17:38
4
Solved
I need to cloak certain headers generated by ASP.NET and IIS and returned in the responses from a ASP.NET WebAPI service. The headers I need to cloak are:
Server
X-AspNet-Version
X-AspNetMvc-Vers...
Petroglyph asked 22/6, 2012 at 11:18
3
Solved
Is there a way to do this ...
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
...programmatically?
The reason is that I want to pass in an instance of my service directly in...
Pogey asked 17/1, 2012 at 21:49
3
Solved
I've just started to use the VS 2012 RC, and I'm creating an ASP.NET MVC 4 web application in which I plan to provide both an HTML-based user interface and a WebApi-based programming interface.
Fo...
Ge asked 19/7, 2012 at 16:10
2
Solved
What is difference between WCF and Web API and WCF REST and Web Service?
Is WCF really so complicated that the webapi should be used?
Whether WebApi can do all the work and do not take advantage of...
Longoria asked 4/5, 2017 at 6:11
4
We used to have these properties in the WCF Web API configuration.
MaxBufferSize = int.MaxValue,
MaxReceivedMessageSize = int.MaxValue,
Variate asked 26/2, 2012 at 14:6
4
I have an ASP.NET Web API service that runs on a web server with Windows Authentication enabled.
I have a client site built on MVC4 that runs in a different site on the same web server that uses ...
Mycetozoan asked 25/4, 2012 at 3:26
3
Solved
I was using a method like below on the previous versions of WCF Web API:
// grab the posted stream
Stream stream = request.Content.ContentReadStream;
// write it to
using (FileStream fileStream ...
Cuenca asked 6/12, 2011 at 12:38
7
Solved
I've done a bit of work in the past using WCF WebAPI and really liked a lot of its features, I'm just playing with ASP.NET Web API at the moment and it seems completely different (IE completely rem...
Headrace asked 26/2, 2012 at 7:22
4
Solved
I have WebApi controllers that end with the "Api" suffix in their names (For ex: StudentsApiController, InstructorsApiController). I do this to easily differentiate my MVC controllers from WebApi c...
Orlandoorlanta asked 23/1, 2013 at 16:34
3
Solved
Within my API Controller called Payment, I have the following method:
[HttpPost]
public HttpResponseMessage Charge(Payment payment)
{
var processedPayment = _paymentProcessor.Charge(payment);
va...
Albertalberta asked 6/6, 2012 at 15:11
3
Solved
PostAsync HttpClient error with Web Api - System.AggregateException "A task was canceled."
I'm trying to call PostAsync method using System.Net.Http.HttpClient from the Web API. I get the following error:
System.AggregateException "A task was canceled."
Task:
Id = 1, Status = Sys...
Sammy asked 13/5, 2013 at 8:15
3
Solved
I am trying to host an ASP.NET WebApi endpoint on an Azure worker role using the new Microsoft.AspNet.WebApi.SelfHost NuGet package. My worker's Run() code looks roughly like this:
// Endpoint is ...
Fuze asked 28/6, 2012 at 7:25
4
jQuery.ajax({
type: "GET",
url: 'http://example.com/restaurant/VeryLogin(username,password)',
dataType: "json",
success: function (data) {
alert(data);
},
error: function (XMLHttpRequest, t...
Avifauna asked 27/3, 2012 at 13:0
3
Solved
I want to implement Dependency Injection in WebApi application using Castle Windsor. I have following sample code -
Interface -
public interface IWatch
{
{
DateTime GetTime();
}
}
Following ...
Harve asked 11/11, 2013 at 11:26
4
Solved
I'm new to WCF RESTFull services developpment and I'm looking for some usefull information and your experience feedback about using webHttpBinding compared to the new WCF Web API http://wcf.codeple...
Haerle asked 14/3, 2011 at 9:43
3
Solved
How can I programatically get a list of public methods w/parameters that are exposed in my webAPI project? I need to provide this list to our QA dept. I dont want to compile and maintain the list m...
Fabrice asked 26/9, 2013 at 20:51
2
Solved
So after a great deal of research I'm starting to enhance our service server stack with a webAPI entry point. Based on this thread, and especially the last post by a member of the Digerati board, w...
Eaglet asked 13/9, 2012 at 18:2
3
Solved
I'm having a real problem with the WCF web api.
I have a simple method that uploads a file and saves to disk. I seem to have set all the right params, but get the above error message when I try to...
Scotism asked 30/1, 2012 at 14:18
1
Solved
I have a service interface with a method that has a parameter of type Stream. Should i close the stream after i have read all data from this stream or is this done by the WCF Runtime when the metho...
Kaminski asked 19/12, 2012 at 12:2
4
Given the ASP.NET Web API route:
example/{Id}
Which maps to the following ApiController action method:
public void Example(Model m)
{
...
}
With the model class defined as:
public class Mod...
Baranowski asked 8/8, 2012 at 10:4
1 Next >
© 2022 - 2025 — McMap. All rights reserved.