wcf-rest Questions

3

Solved

I just created my first WCF REST service. I wanted it to return JSON, so i especified the response format. At first, I was frustrated because it was returning SOAP all the time and I didn't know wh...
Wrecker asked 20/9, 2011 at 0:28

4

I have been struggling with username/password authentication/authorization in a WCF 4.0 RESTfull service using the ASP.Net membership/role providers. Having spent two days trying to find something...
Richierichlad asked 18/9, 2011 at 23:15

2

Solved

I am a beginner at RESTful services. I need to create an interface where the client needs to pass up to 9 parameters. I would prefer to pass the parameters as a JSON object. For instance if my J...
Trivium asked 17/12, 2012 at 14:11

1

I got this when I consume a webservice: Operation 'Login' of contract 'IServices' specifies multiple request body parameters to be serialized without any wrapper elements. At most one body param...
Warmonger asked 13/7, 2012 at 8:8

2

Solved

I have the following method in my WCF service: [OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Xml, RequestFormat = WebMessa...
Boson asked 11/7, 2012 at 18:46

1

Solved

I am trying to create a REST service using asp.net web api and everything is working fine but I have now come across what to do with authentication. I am a little confused of where to start, here ...

2

Solved

I have a service named WcfService2 (original i know) which has an IService.cs file with a public interface: namespace WcfService2 { [ServiceContract] public interface IService1 { [OperationCo...
Circumstantiality asked 25/3, 2012 at 19:57

1

Solved

I am trying to use the NETFx Json.NET MediaTypeFormatter nuget package to swap out the default DataContractJsonSerializer in my WCF REST service (4.0 framework). I downloaded the package in my proj...
Melyndamem asked 22/3, 2012 at 18:1

3

Solved

I have successfully configured 3 endpoints for my prototype service. The endpoints are basicHttpBinding, wsHttpBinding, and webHttpBinding. The only glitch I have at the moment is in the WCFTestCli...
Ataman asked 20/9, 2011 at 1:43

2

Solved

I have tried every combination to send a request to send a POST request to RESTful WCF from jQuery. Can someone imitate and make it working. Code is here : http://pastebin.com/Ua97919C I am work...
Lowe asked 16/12, 2011 at 17:7

4

I have a simple WCF REST service: [ServiceContract] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)] [ServiceBehavior(InstanceContextMode = Instan...
Shrum asked 3/10, 2011 at 13:14

1

Solved

For a service with webHttpBinding and helpEnabled="true", the help information is getting generated properly. Was wondering if it is possible to control the output somehow. Below are the changes I ...
Roberts asked 10/8, 2011 at 2:17

4

Solved

I get confused when and why should you use specific verbs in REST? I know basic things like: Get -> for retrieval Post -> adding new entity PUT -> updating Delete -> for deleting Th...
Forereach asked 1/8, 2011 at 8:12

3

A very common approach to implementing RESTful services is by utilizing ASP.NET MVC to do so over WCF. ASP.NET MVC has excellent RESTful support by via flexible URL routing and flexible HTTP Meth...
Syrupy asked 26/3, 2011 at 20:10

1

Solved

I have a date time in the database and I retrieve it from the database using Entity Framework, I then pass out the data via JSON API through the DataContractJsonSerializer. The time in the date ti...
Variance asked 15/4, 2011 at 11:7

0

I have a bunch of wcf webhttp (rest) services that expect an auth cookie. Question is - How do I pass the formsauth ticket to the wcf service? Flowing authentication works for get requests through ...

1

I have this REST WCF service. [WebInvoke(UriTemplate = "/GetNames/{Category}?order=asc", Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)] public Li...
Vastha asked 25/3, 2011 at 11:13

1

Solved

I have a asp mvc application consuming wcf rest services (all on the same box). For authentication calls, I am trying to set cookies inside a wcf rest service. Code on the client side - HttpR...
Spadiceous asked 28/3, 2011 at 18:32

2

Solved

Thanks to this answer, I am now able to successfully call a JSON RESTful service using a WCF client. But that service uses HTTP status codes to notify the result. I am not sure how I can access tho...
Hypnology asked 13/1, 2011 at 5:22

© 2022 - 2024 — McMap. All rights reserved.