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
1
vote
1 answer

calling a wcf webapi service with basic authentication from an asp.net 2.0 project

I'm working on a project that uses wcf webapi to expose all it's functionality as web services. I then consume these with various views (well two for now). One of these views is a legacy asp.net 2.0 project that will eventually be phased out once…
Nicolas Straub
  • 3,381
  • 6
  • 21
  • 42
1
vote
1 answer

Mixed POST parameters with WCF Web Api

I'm trying to write a service using WCF Web Api (preview 6), which passes in parameters through the route AND through the POST body. (Variable and method names changed to protect the innocent) For example.. [WebInvoke(UriTemplate =…
Rob Gibbens
  • 1,122
  • 1
  • 8
  • 24
1
vote
1 answer

Wcf Web API filter by DateTimeOffset

I am currently using WCF Web API Preview 5 and am trying to filter a list of users where the LastModifiedDate is greater than or equal to the provided datetimeoffset: http://api.myapp.com/users?$filter=LastModifiedDate ge…
Cragly
  • 3,554
  • 9
  • 45
  • 59
1
vote
1 answer

How to Get Header Values

How can I access header values from a web method in WCF Web API?
Venkateswararao
  • 343
  • 1
  • 5
  • 19
1
vote
2 answers

Modeling Client Context in WCF Web API with MEF

I need to extract several header values at the start of each request and place them into a ClientContext object that can be injected into my application code by MEF. I am using Preview 5 of the WCF Web API and don't see a way to do this. In…
SonOfPirate
  • 5,642
  • 3
  • 41
  • 97
1
vote
1 answer

Using MVC routing engine from a self hosted dll (outside asp.net)?

I'm using WCF Web API to create a self-hosted/InProcess REST Service (HttpServiceHost) that the client app will use. All the examples for the web api use ASP.Net routing engine. Would it be possible to use the routing engine outside of Asp.net? To…
coding4fun
  • 8,038
  • 13
  • 58
  • 85
1
vote
2 answers

How do I serialize/deserialize a JsonValue object to and from XML in a WCF web service utilitzing Web Api?

So I have been working on a WCF web service using latest Web API assembly and I am loving the JsonValue object. What I want to do is accept JSON which is bound to a JsonValue object, then convert that JsonValue object to a equivalent XML…
Daniel P
  • 4,217
  • 3
  • 21
  • 15
1
vote
1 answer

General architecture for backend?

We are trying to be forward looking in our architecture choice on some of the new systems we are designing. Pretty much we want to architecture back end system that no matter what interface we decide to use (WinForms, Silverlight, MVC, Webforms,…
coding4fun
  • 8,038
  • 13
  • 58
  • 85
1
vote
2 answers

Why I am not getting WCF Web API Objects in Visual Studio 2010

I have installed WCF Web API Preview 5 using NuGet Visual Studio extension (WebApi.All). I am trying to implement some simple examples on the internet, but it seems like they have different Assemblies to the ones I installed. For example, I cannot…
Karis Sr.
  • 171
  • 2
  • 12
1
vote
1 answer

Does ASP.NET MVC and WCF Web API use the same routing module?

Does ASP.NET MVC and WCF Web API use the same routing module for routing incoming requests to particular class methods?
VJAI
  • 32,167
  • 23
  • 102
  • 164
1
vote
1 answer

Advantages of WCF Web API over WCF REST service

I already have a WCF service that communicates through SOAP messages now I have a requirement to modify this service such that it can be consumed from JavaScript. The client asked me to look into WCF Web Api. I don't understand what are advantages…
VJAI
  • 32,167
  • 23
  • 102
  • 164
1
vote
1 answer

Using the WCF HTTP Web API, UriTemplateMatch is always null

I've setup my service according to the latest tutorials I've found, and everything seems to work fine. HOWEVER, In order to access the WebOperationContext.Current.IncomingRequest.UriTemplateMatch class which contains the QueryParameters collection…
George
  • 1,964
  • 2
  • 19
  • 25
1
vote
1 answer

How to create WCF WebApi in standard ASP.NET

I want use WCF WebApi in a regular ASP.NET C# project. Already I have created WCF WebApi in MVC application but I want to create in normal ASP.NET. Are there any sample links to show this?
Victor
  • 555
  • 6
  • 15
  • 39
1
vote
1 answer

WCF Web API Json Format

I am new to WCFweb api WEb service in MVC I did a sample service using ADO.net Entity frame work it return result in XMl format I want to Json format I wrote the code like that. [WebGet(UriTemplate = "ListAccount", ResponseFormat =…
Venkateswararao
  • 343
  • 1
  • 5
  • 19
1
vote
1 answer

Link/url-generation in a self-hosted WCF WebApi

What is the best strategy to generate links or urls to other resources in a self-hosted WCF WebApi application, without hard-coding something like host or port, etc. Is there something like a route-helper?
Joachim Rosskopf
  • 1,259
  • 2
  • 13
  • 24