Questions tagged [wcf-rest]

A REST service built with WCF

REST Service built for WCF that contains HTTP specifications for GET, PUT, POST and DELETE as well as other standard REST elements.

MSDN documentation

619 questions
0
votes
2 answers

how to PUT a "WrappedRequest" request for wcf RESTful service from Fiddler

I got the below REST service, I need to test it from fiddler, and I've searched alot, I figured how the payload is structured like the below: "value" can be XElement or…
nolimit
  • 814
  • 10
  • 19
0
votes
2 answers

KISS: Simple C# application which communicates with a RESTful web service

Following the KISS principle, I suddenly realised the following: In .NET, you can use the Entity Model Framework to wrap around a database. This model can be exposed as a web service through WCF. This web service would have a very standardized…
Wim ten Brink
  • 25,901
  • 20
  • 83
  • 149
0
votes
1 answer

Can Fiddler show wrong information?

How could Fiddler show info which is different from what I see in debugger? I have HelloWorld RESTful service on server side. When I called it from browser, everything is OK. I can see this in Fiddler. But then I tried to call this service from…
Vitalii Korsakov
  • 45,737
  • 20
  • 72
  • 90
0
votes
1 answer

WCF Rest service how to Access post JSON data with out parameters

I created restful wcf service which works great for get. Now iam building some post methods. The client posts me data to this service in JSON format. The service method will not have any parameters so i need to read the jsondata from the request…
0
votes
1 answer

Consuming custom REST service hosted inside Sharepoint 2010 with Windows Authentication

There is this custom WCF REST service hosted inside a Sharepoint 2010 application using Windows Authentication. I need to consume this service in a .NET project (i.e. console project) but the credential thing is driving me crazy. I'm getting lots of…
empz
  • 11,509
  • 16
  • 65
  • 106
0
votes
0 answers

How to create/generate WCF RESTful webservice client in Netbeans

I have a RESTful webservice in WCF. How can I create/generate a RESTful webservice client for it in Netbeans? Ultimately, I would like to use it in a JSF web application.
Marshall
  • 1,195
  • 6
  • 30
  • 47
0
votes
3 answers

Jquery unable to get the response from WCF REST service

I have developed WCF rest service and deployed it on a link that can be accessed via the browser because its action is "GET". I want to get that data using jQuery. I tried my best to get WCf get response using jQuery but in vain. I also tried $.Ajax…
Bilal lilla
  • 618
  • 3
  • 8
  • 29
0
votes
2 answers

Unexpected HTML Response while Attempting to Post a request to wcf REST service

Can some one tell me how to post request to a wcf rest service? my code is below TResponse Post(string uri, TRequset input){ HttpClient client = new HttpClient(); HttpContent content = new ObjectContent(input, new…
Sat
  • 161
  • 1
  • 2
  • 8
0
votes
1 answer

WCF restful service, server did not provide a meaningful reply

I am creating a restful service using WCF, I keep getting the error: The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error. It is a time clock…
Ravi Chimmalgi
  • 175
  • 1
  • 12
0
votes
1 answer

WCF Rest Service is called Twice

My WCF Rest Service Called twice I did not know the exact reason. when dubugging with client application it gets called twice . Can anyone point me what went wrong... Service Declaration: [ServiceContract] public interface…
VijayMathew
  • 55
  • 1
  • 10
0
votes
2 answers

xmlserializer.deserialize() Creates new object instead of reading the one i want it to read

So when i try to use: WebRequest request = WebRequest.Create("http://localhost:9998/API/GetGameById/" + ID.ToString()); WebResponse ws = request.GetResponse(); StreamReader responseStream = new…
Kladfizk
  • 99
  • 1
  • 17
0
votes
2 answers

response is null in chrome and firefox

I want to call rest services using javascript. My code is: function CreateXMLHttpRequest() { if (typeof XMLHttpRequest != "undefined") { alert("1"); return new XMLHttpRequest(); } else if (typeof ActiveXObject != "undefined") { …
vidhya
  • 1
  • 4
0
votes
2 answers

Set proxy server specific to a service request HTTP client+REST

using (var client = new System.Net.Http.HttpClient()) { var response = client.GetAsync(fullUrl).Result; } I am creating HTTP client as above to consume a RESTfull service. I should be able to set proxy for this service…
Kuttan Sujith
  • 7,889
  • 18
  • 64
  • 95
0
votes
1 answer

Restful service returns - There was an error checking start element of object of type System.Byte[]. Encountered unexpected character 'ÿ'

So I am trying to send an image from the client side to the service. Service definition looks like this (implementation is nothing fancy and It doesn't reach there so excluding that code): [OperationContract] [WebInvoke(Method = "POST", UriTemplate…
Science_Fiction
  • 3,403
  • 23
  • 27
0
votes
1 answer

System.Net.WebException: The remote server returned an error: NotFound. ---> silverlight file post to WCF Rest Service

i am trying to post an image to wcf rest service from silverlight 4 but i am getting an exception when i am taking resonse from the request, the exception is System.Net.WebException: The remote server returned an error: NotFound. --->…
Syed Waqas
  • 862
  • 2
  • 9
  • 29