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

How to generate mentioned json format for WCF REST API

can somebody help me with some code about how can I build my Json string as mentioned below using GSON google library in android app. I have generated the below mentioned string using JsonStringer as mentioned below. JSONStringer stringer = new…
Shax
  • 4,207
  • 10
  • 46
  • 62
0
votes
1 answer

RESTful WCF receiving Base64 message. Need to convert message back to XML

I am having some trouble trying to write code within a RESTful WCF service. I have made a method available to a calling client application and I am receiving a message that is of the format Ax27834...... which is a Base64 Binary message. The issue…
CSharpened
  • 11,674
  • 14
  • 52
  • 86
0
votes
1 answer

Got 404 when consume WCF in REST mode

I used this url in browser, and I expect to see an XML, I only got 404 not found error. Can you help please? --http://SomeIP:65001/WCFPilot/Service1/REST/GetData web.config
Costa
  • 3,897
  • 13
  • 48
  • 81
0
votes
2 answers

Could not make Json Request body from Iphone

I am a .Net Software developer .I have Created a WCF Rest API for User Validation Following is its signature. [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle =…
VijayMathew
  • 55
  • 1
  • 10
0
votes
1 answer

Posting android, unable to contact the web service

I'm writting an app which has to post some data on a webservice. To do so, I used that tutorial. The method "get" is working but not the post. Webservice code : [OperationContract] [WebInvoke(Method = "POST", ResponseFormat =…
David
  • 1,679
  • 11
  • 22
0
votes
1 answer

PhoneGap with WCF Rest Service

So I have started with PhoneGap/Cordova (windows phone) and WCF Rest Services, however, I am having problems on getting the Emulator to interact with the WCF Service. At first I was thinking that maybe the Emulator could not connect to the localhost…
user1484089
  • 85
  • 2
  • 9
0
votes
1 answer

How to protect a WCF Rest service with username and password?

I'm new in WCF and I want to know how can I protect a WCF Rest service. I have an asp.net website, only registered users can access it, the application uses a service hosted on the same IIS server, my question is, how can I restrict the use of this…
Hamza_L
  • 644
  • 4
  • 18
0
votes
2 answers

Restful WCF service POST methods returns HTTP400 error in fiddler2

have created simple Restful service for log in verification. Following are my interface and class definitions. Interface IDemo: public interface IDemo { [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, …
VijayMathew
  • 55
  • 1
  • 10
0
votes
0 answers

Posting JSON to WCF RESTful API in System.Object not accepting it but Class accepts the input

m sorry my Qs title is a bitt odd, i didnt found the right words to explain. Neways, I have a WCF RESTful API in which I have implemented Custom Parameter Inspector class which inherits IParameterInspector to catch AfterCall and BeforeCall…
1Mayur
  • 3,419
  • 5
  • 40
  • 64
0
votes
2 answers

jqGrid does not show rows

I am trying to display the rows in jqGrid (4.3.2)and havn't got success yet. My webservice response is: {"d": {"__type":"JSONResponse:pe", "ActionType":null, "JSONData":" {\"total\":1, \"page\":1, …
abhishekrvce
  • 185
  • 3
  • 9
0
votes
2 answers

WCF WebGet Dictionary Parameter on GET

I want to create a WCF RESTful service method that can receive an arbitrary number of parameters in the query string and send them to some type of key,value collection parameter on the method. For Example: if I call…
Mikeb
  • 781
  • 7
  • 24
0
votes
1 answer

WCF rest the URITemplate added automatically

I have a WCF REST Service with teh following URL: http:/localhost/GetAllOrders but the factorychannel always genereates the Uri to http:/localhost/Service.svc/GetAllOrders/GetAllOrders Here is my client factory channel: Uri address = new…
user384080
  • 4,576
  • 15
  • 64
  • 96
0
votes
1 answer

Insert operation with WCF rest fails everytime....

Hi I am using WCF Rest in my app with a layered architecture. My dataflow heirarchy is given below: Data Layer -> Linq2Sql || Business Layer || WCF Rest Service || ASPX Pages I am using JSON via JQuery to Select/Delete and codebehind to…
user240141
0
votes
1 answer

cannot retrieve data in Jquery after makin $.ajax call using Jsonp

I've a function used to retrieve the data from my RESTFUL WCF Service. the returned data has to be JSON. on the Client end I have a javascript function called autosuggest like below: function autosuggest(location){ var uri=…
Akshay Khandelwal
  • 1,570
  • 11
  • 19
0
votes
1 answer

Publishing a Restful Service returning Json in IIS 7

Recently I've been trying to publish a Restful service in IIS7 but didn't have luck with it. When published it doesn't recognize the endpoint i have assigned at the web.config. The IIS 7 is a localhost for now, once i get it started I will move it…
Roberto Durand
  • 137
  • 1
  • 1
  • 13
1 2 3
41
42