what is the ActionFilterAttribute equivalent in WCF?
I have a rest service which looks like below
[WebInvoke(Method = "POST", UriTemplate = "/")]
public User CreateBookMark(BookMark bm)
{
User authenticateUser = GetUserSomeHow();
//do stuff
}
I want to change this to follwoing
[WebInvoke(Method = "POST", UriTemplate = "/")]
p...
That title is quite a mouthful. Let me try to be as clear as I can...
I have a WCF REST Service written in .NET 4 that uses the entity framework to pull some data from SQL Server into a list of objects. The objects are then returned as XML to the client. The problem is that the XML have references to each other due to my model's rela...
I have created an API that is used on several sites. The client sites call the server with either file_get_contents or curl and accesses a url of ours like "http://www.myserver.com/api/record.php?some=thing". The client makes the call and then waits for the API to respond before processing the rest of the page. However, some of the time ...
Hey Everyone
I'm just putting together a simple web application in Ruby on Rails 3 RC and I'm a bit stumped with the forgery protection. I plan to have a web interface as well as allow XML API calls from an iPhone app. I'm currently testing this with a REST request generator but am getting InvalidAuthenticityToken errors.
Firstly, I t...
Hi there,
Been writing my first WCF Rest service and its going well... but i have a small issue, can anyone help?
When i goto my help page which on local pc is like so
http://localhost/WcfRestService1/help
It displays the following, but the URI is wrong, notice the URI is blank or only asks for the parameter {id}
Uri Method ...
Hi there,
I wonder if anyone can confirm the naming convention that i am using is correct, i have just started and really don't want to get into a bad habit
Here is what i have ... (see comments)
basically i have a mehtod called GetTasks but the uri is Tasks - i presume this is the way to go??
Also i have a method called GetUser whe...
I am using an XMLHTTPRequest to fake a RESTful interface. After the response object returns data from the request, how can i present that to the user? For example, in a PUT request, the server actually responds with a full HTML page of data (in most cases), and i want to display this whole page to the client. Any idea how? I'm sure there...
Hi there,
I am used to using soap services where you add a service reference and it creates strong types classes (return types) of each method..
Of course REST doesn't work like this
How do i consume a WCF REST Service?
Is there no way to use strongly typed classes for the return types?
I am using Visual Studio 2010 specifically
An...
Here is the documentation for the SugarCRM 5.5 API:
set_relationship
http://developers.sugarcrm.com/docs/PRO/5.5/Developer_Guides/-docs-Developer_Guides-Sugar_Developer_Guide_5.5.1-Chapter%202%20Application%20Framework.html#9000526
This is the gem which is creating methods for me to access it (line 110):
http://github.com/dennijo/Rub...
Hi there,
I need to extend my WCF Data Service to include additional methods, not only the database tables..
But it doesn't seem to be working correctly.
Firstly i want to ask if this is legal? or throwned upon?
The reason i need to do it is i need add additional REST methods that will make a call to ASP.NET Membership services (th...
I've got a question for the mod-rewrite gurus out there :p
I've got a REST api built, I'm just working on the .htaccess mod-rewriting for some nice URLs.
I would like this...
api.site.com/[contacts].[json]?location=[new york,NY]
To map to this...
site.com/includes/api/v2/api_receiver.php?action=[contacts]&format=[json]&location=[new y...
Do I require to install new software to use REST services with JavaScript and Java?
...
Pardon the simple question, but it seems most searches try to tell me which methods are designed for what actions. Eg, create & edit is PUT, create from plural (articles) is POST, and so on. (If you disagree with this, i was just using it as an example. :)
With that said, how do you initiate a resource edit? To create a resource, with a...
I have written my first rest services and currently i am testing them in a browser.
Is there a test client or some sort that provides additional features or is this the normal way of testing i.e. in IE, Firefox etc?
...
Hi there,
does anyone know if HttpClient & HttpResponseMessage classes are available in VS 2010? I can't seem to get them to work, do i need to add a reference or using namespace?
These classes were originally from the starter kit for REST for Vs 2008... In vs 2010 its built in i.e. no use for the starter kit...
But how do I cosume t...
I'm thinking about building an application with a RESTful web service. My thought is to build the RESTful (json, etc) part of the application as a standalone, and then the frontend (e.g. html/css/js/etc) as a client to that service, although not through js, I'd like the web page to work without js, so probably using something like LWP to...
I have a WCF service to publish feeds and atom. The tricky things is need to publish password protected feeds that too passing userid and password along with URL.
Since WCF REST support bindbyposition and bindbyparameter name, just i would like to know how to allow & extract userid and password from webget url into wcf service.
Please ...
On IIS 6 how can I allow the PUT operation on a WCF Rest API?
Since I don't have the .svc file (I added a route on global.asax to service class) I can't allow the put operation on the .svc extension on IIS 6.
...
I am trying to access a REST webservice, however my code doesn't work and keeps throwing a HTTP 401 error
see this example screen cap from Wireshark of the initial ssl request:
image link
This is from a Curl call to the same web address with the same details. The issue is that under my VB.NET version the "Extension: server_name" (and ...
I am trying to do some basic authentication in a WCF RequestInterceptor. I am using this article as a start.
The problem I am running into is communicating between the interceptor and the service. Nothing I have tried seems to work. So far, I have tried:
OperationContext.Current
requestContext.RequestMessage.Properties[HttpRequestMess...