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
2 answers

How to send a webservice request to .svc site in jmeter?

I'm a tester who's been asked to stress test a wcf webservice application, this is by no means my domain. I've seen many tutorials/demo's online that explain how to send a message to a web service using the wsdl info in the path field in jmeter. But…
Pixie
  • 67
  • 8
0
votes
1 answer

How to add Correlation Token parameter to web api request?

I'm using web api without deep understanding what it is, just knowing that each editable entity become a resource, that means has the uri, when web api provides the interpretation of PUT, POST, GET, DELETE HTTP commands to support CRUD operations.…
0
votes
1 answer

Disambiguation in ASP.NET WebAPI routing using Action

Hi I have this REST services GET admin/delegateduser GET admin/delegateduser/id GET delegateduser I succeed configuring the route with this mapping: config.Routes.MapHttpRoute( name: "ActionApiWithId", routeTemplate:…
0
votes
1 answer

An exception of type 'System.ServiceModel.FaultException`1' occurred in mscorlib.dll but was not handled in user code

I am trying to consume WCF web service and get following error. Its a third party service so dont have much control over it. I have tried making tracing work but nothing seems to work. Cant get tracing work Error i get is An exception of type…
Jay
  • 1,037
  • 5
  • 23
  • 41
0
votes
1 answer

If I can write HTTP Service in WCF, why should I use Web API?

I've gone over other WCF vs Web API question as well as blogs. It is possible to write HTTP service with webHttpBinding in WCF too. So why should one move to Web API when it is possible to use WCF for the same purpose. Some say it's easy to use HTTP…
user3188781
0
votes
0 answers

WCF vs Web API preference

I currently have a WCF service that the website uses to display data. I also use the same service to run a computation that takes about 8-9 hours and it saves the data it computed into the database during the time (the process/server stays alive).…
iefpw
  • 6,816
  • 15
  • 55
  • 79
0
votes
1 answer

Securing REST Service using a simple Token

I have a drop-down in my application for which i populate the data using an Ajax call as shown below. This works fine and my Web API URL is "http://example.com/Service.svc/json/getairports" $(function () { …
0
votes
1 answer

If Web API can be used just for Authentication using OAuth 2 in ASP.NET MVC4

I'm working on segregating the authentication part of my ASP.net MVC4 application using DotNetOAuth 2.0, Which will means that one project will do only authentication and send out response,based on response it will have access to other…
0
votes
2 answers

Using own domain model/entity on client with wcf data service (uses web api/odata/entity framework) as service reference

Here's my situation, I'm trying to create a WPF application that connects to my own web odata service (uses web api and entity framework). I have my own set of domain models/entities in the server side that the web api and entity framework works…
Boggs
  • 133
  • 9
0
votes
1 answer

webapi route with controller and action

Default webapi route - api/{controller}/{id} In realtime scenrios may require more get and post methods Is it recommended to change this like default routing - api/{controller}/{action}/{id}
Ram
  • 57
  • 2
  • 10
0
votes
1 answer

How to debug Json between Local IIS Website and Local

I'm really struggling to know what the problem is here... I have 2 websites configured in IIS... **PH.Website** (STANDARD MVC PROJECT) **PH.Api** (MVC WEB API PRIOJECT) When you hit the PH.Website it uses a WebClient class in one of the…
Exitos
  • 29,230
  • 38
  • 123
  • 178
0
votes
1 answer

Overload WebAPI controller action doesn't work with viewmodels?

The following works: public class UsageController : ApiController { public int GetMilk(string param1, string param2) { return -1; } public string GetBilling(string param1) { return null; } } But the…
0
votes
2 answers

RESTful application

Roy fielding came with this idea and a lot of application is built around this. But I am really really confused why it is called Representational state transfer. Don't we go from one page to other page in almost every application and the…
0
votes
1 answer

WebAPI returning UnAuthorized if missing Header Value

Using APS.NET MVC 4 WebApi Each request must have a Header called "version" if it doesn't or the version is too low, I need to return an UnAuthorized value to the client. I'm not sure how to send that as a response . In my BaseApiController I have…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
0
votes
1 answer

Unable to throw httpResponseException

When I try to throw the below forbidden ResponseException from my controller. An exception stating "Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for…
Mohan
  • 107
  • 2
  • 9
1 2 3
17
18