Questions tagged [wcf-rest-starter-kit]

15 questions
4
votes
3 answers

WCF 4.0's analog to WCF REST Starter Kit's RequestInterceptor?

Does WCF 4.0 have an analog class/module/whatever to WCF REST Starter Kit's RequestInterceptor?
isekaijin
  • 19,076
  • 18
  • 85
  • 153
4
votes
3 answers

Retrieve EF4 POCOs using WCF REST services starter kit

I am using WCF REST service (GET method) to retrieve my EF4 POCOs. The service seem to work just fine. When I query the uri in my browser I get the results as expected. In my client application I am trying to use WCF REST Starter Kit's…
muruge
  • 4,083
  • 3
  • 38
  • 45
2
votes
2 answers

Bad Request: WCF REST Service with Starter Kit

I am trying to build a REST & json based WCF service that takes a complex type as input. On the client I am trying to consume this service using HttpClient that comes as a part of WCF REST Starter Kit. Below is my service code: [WebInvoke(Method =…
Vinod
  • 929
  • 1
  • 16
  • 42
2
votes
0 answers

rest api wcf enable cors method not allowed

I have below in wcf webconfig
Md. Parvez Alam
  • 4,326
  • 5
  • 48
  • 108
2
votes
1 answer

Can I redistribute the Microsoft.Http assembly? (part of the WCF REST Starter Kit)

I'm building an app that will be used by "anyone". It depends on the WCF REST Starter Kit, specifically the Microsoft.Http.dll and Microsoft.Http.Extensions.dll assemblies. Can I (legally) redistribute these DLLs? I am thinking I could just copy…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
2
votes
2 answers

Wcf Client: Passing XML string in the WCF REST service using WebInvoke

With out parameter for Display method it is working in browser i.e http://localhost:2617/UserService.svc/test When i add one parameter i am unable to browse it also. I have the following contract. [ServiceContract] public interface IUserService { …
1
vote
2 answers

Wcf Rest with UserNamePasswordValidator problem

I am trying to add UserNamePasswordValidator to 'WCF Rest Service Application' project with visual studio 2010, the problem is.. it never step into UserNamePasswordValidator class, is UserNamePasswordValidator work with Wcf Rest? Kindly…
user701598
  • 31
  • 1
  • 4
1
vote
0 answers

i:nil="true" WCF REST request

I am using a data contract in WCF, but there is some unwanted response tags being sent in the xml file, I am not sure how to modify the data contract class so that I can avoid sending that unwanted response field. In the below XML file, all the text…
0
votes
1 answer

Posting related entities in WCF Rest

I have developed a sample WCF REST service that accepts that creates an "Order" object, the method implementation is as shown below: [Description("Updates an existing order")] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json,…
0
votes
1 answer

Controlling Content-Type from REST service

I working on a REST service based on the 'WCF REST Service template' in VS2010. Out-of-the-box, you can have a service return XML or JSON, based on the Accept type specified in the request, but how do I add my own format.... I found an…
smolesen
  • 1,153
  • 3
  • 11
  • 29
0
votes
1 answer

Is it possible to implement a redirector / reverse proxy using RequestInterceptor from WCF REST Starter kit

I am attempting to implement a reverse proxy using the RequestInterceptor from WCF REST starter kit. I am able to set the basic header properties and configure the calls. I am getting stuck with the following aspects: Returning an appropriate…
Gemini
  • 29
  • 1
  • 4
0
votes
1 answer

WCF REST StarterKit and RequestInterceptor thread safety

I was looking for some technical information about how RequestInterceptor from the WCF REST starter kit works, but I didn't find what I wanted. Let's look at the code snippet took from the custom service host factory: protected override…
Tomasz Jaskuλa
  • 15,723
  • 5
  • 46
  • 73
0
votes
1 answer

Consolidating redundant declarations for a REST-full WCF service

I'm using .NET 4 WCF to expose the following REST-full webservice [OperationContract] [WebGet] void Test(); Since this is a developer oriented program, I want to support REST-full HTTP developers and also developers that like to use a WSDL.…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
0
votes
0 answers

Difference in execution of SOAP based WCF from a Restful WCF

Can anyone please tell what is the actual difference between a Restful WCF and a normal WCF service? By difference I basically means the difference in the way .net handles both the requests. Is it like when we change a WCF service to Restful, using…
0
votes
1 answer

Request timed out while using Post method HttClient in C#

In my application, I am using a code piece to send a content to a web proxy with a URL with an interval of 2 seconds between each post. The message to post in the below code is given as static string, but will be dynamic in the original application…
Anish Kurian
  • 93
  • 1
  • 2
  • 8