| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
45 Articles match "Restful","Service"
| Related DevelopMentor Courses | MORE | | Secure WCF REST Services with a Custom UserNamePasswordValidator When securing WCF services you’re faced with a choice: Message versus Transport security. Using SSL is generally the best choice for ensuring point-to-point privacy and integrity, which lets you pass user credentials over the wire when directly invoking service operations. This will cause the service to look in a soap header for client credentials. It turns out the serviceCredentials behavior doesn’t really have anything to do with whether it’s a Soap or Rest-based service. Technical REST Security WCFDownload the code for this blog post here. Enjoy. DevelopMentor Courses - Monday, May 28, 2012 Building Scalable and Secure WCF Services The key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. For this reason you should avoid bindings that establish a session with the service, such as NetTcpBinding or WsHttpBinding with secure conversation enabled. Both BasicHttpBinding and WebHttpBinding, however, are sessionless and allow you to call a service multiple times without concern for which physical server responds to the call. Here is a snapshot of 5 calls to a service with HTTP Keep-Alive enabled over SSL. Technical REST SOAP WCFEnjoy. DevelopMentor Courses - Monday, June 18, 2012 Ninject WCF Extensions for RESTful Services while ago I blogged about using Ninject for dependency injection with WCF Services. The problem with WCF services is that by default they are required to have a parameterless constructor, which does not play nice with DI containers, such as Ninject , which support injection of dependencies via constructor parameters. had the need recently to set up a REST-style WCF Services project and wanted to use Ninject for DI with it. Things get a little tricky, however, if you want to expose both SOAP and REST endpoints from the same WCF service. Named( "Rest" ).WithConstructorArgument( DevelopMentor Courses - Sunday, April 8, 2012 |
122 Articles match "Restful","Service"
| The Latest from DevelopMentor | MORE | | Unit testing code depending on the ASP.NET #WebApi HttpClient But with a REST service there is both a client and a service component. In this case the client application contains the following class to load books from the REST WebAPI controller: 1: public class BooksClient. This class uses the HttpClient to request the data from the service and extracts the books from the body before returning them. The GetBooks() function gets all books from the REST service. The negative case isn’t much harder, all we need to do is make sure our dummy service returns an HTTP 404 Not Found status. 14: {. 21: {. The Problem Solver - Monday, May 20, 2013 Unit testing a ASP.NET WebAPI controller 'One of he goals of the ASP.NET WebAPI is to make REST style API controllers more testable than more traditional WCF services where in the past. ASP.NET REST WebAPI For the most part that is true but there are cases where an ApiController depends on the actual incoming request and its data and things can become a bit more difficult. Testing a simple ApiController that gets data Suppose we have the following ASP.NET WebAPI Controller with two Get methods, the first returns the complete list of books and the second returns the book with the requested ID. 8: 9: }. 11: {. The Problem Solver - Sunday, May 12, 2013 A Roundup of MongoDB Management Tools REST view, price: $0 / open-source, platforms: Windows, OS X, Linux. My take : While this is just the basic REST API of MongoDB, you can monitor your log files, run commands using the REST API, and otherwise check in on your server. Just requires the –rest command-line to mongod. MongoDB Monitoring Service, price: $0 / open-source, platforms: Windows, OS X, Linux. MMS (MongoDB Monitoring Service) is a service for monitoring MongoDB infrastructure. My take : MMS is an interesting, free service from 10gen, the makers of MongoDB. link]. Michael C. Kennedy's Weblog - Monday, April 22, 2013 | -
| The Best from DevelopMentor | MORE | - Secure WCF REST Services with a Custom UserNamePasswordValidator
When securing WCF services you’re faced with a choice: Message versus Transport security. Using SSL is generally the best choice for ensuring point-to-point privacy and integrity, which lets you pass user credentials over the wire when directly invoking service operations. This will cause the service to look in a soap header for client credentials. It turns out the serviceCredentials behavior doesn’t really have anything to do with whether it’s a Soap or Rest-based service. Technical REST Security WCFDownload the code for this blog post here. Enjoy. DevelopMentor Courses - Monday, May 28, 2012 - Using HTTP status codes in a REST service
When we build services, or write any code for that matter, error can occur and we have to cater for those. With SOAP service we gibe a calling application information about the error by returning a SOAP fault. When we are building REST service we embrace HTTP and as a result we also embrace all the HTTP status codes, not just 200 and 500. 5xx is all about service errors With these status codes we indicate that something went wrong in the service. In that case the service would return a 401 Unauthorized status. Book GetBook( int id). {. null ). {. The Problem Solver - Wednesday, July 20, 2011 - Building rich HTML 5 clients using REST services
You can download the slide from my session on Building rich HTML 5 clients using REST services here and the sample application using the WCF Web API here. www.dotnetevents.nl.NET WCF webcast ASP.NET REST dotnetmag HTML5The slides are also available on SlideShare. Enjoy! www.TheProblemSolver.nl The Problem Solver - Wednesday, October 26, 2011 - Building rich HTML 5 clients using REST services recording
For those who missed the online event about building JavaScript and HTML 5 client for a REST service build using the new WCF Web API the recordings are up. www.dotnetevents.nl.NET WCF webcast ASP.NET REST HTML5You can download the hi res recording here or download one of the other formats from the main page here. And remember there a bunch of other useful recording from other DevelopMentor instructors on the same page. Enjoy! www.TheProblemSolver.nl The Problem Solver - Thursday, November 3, 2011 - Building Scalable and Secure WCF Services
The key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. For this reason you should avoid bindings that establish a session with the service, such as NetTcpBinding or WsHttpBinding with secure conversation enabled. Both BasicHttpBinding and WebHttpBinding, however, are sessionless and allow you to call a service multiple times without concern for which physical server responds to the call. Here is a snapshot of 5 calls to a service with HTTP Keep-Alive enabled over SSL. Technical REST SOAP WCFEnjoy. DevelopMentor Courses - Monday, June 18, 2012 - On building Restful services
lot of people will be familiar with writing SOAP style services but not everyone is quite as familiar with the REST approach so I guess that takes a bit of explanation. This subject is a bit long for a single blog post so I am going to do a number explaining what REST is, the difference with SOAP and how to build these Restful services using the WCF Web API. Of course the WCF Web API is still in a preview state so some of the technical things are subject to change over time but the general principal of building Restful services isn’t going to change a lot. The Problem Solver - Tuesday, June 21, 2011 - Ninject WCF Extensions for RESTful Services
while ago I blogged about using Ninject for dependency injection with WCF Services. The problem with WCF services is that by default they are required to have a parameterless constructor, which does not play nice with DI containers, such as Ninject , which support injection of dependencies via constructor parameters. had the need recently to set up a REST-style WCF Services project and wanted to use Ninject for DI with it. Things get a little tricky, however, if you want to expose both SOAP and REST endpoints from the same WCF service. Named( "Rest" ).WithConstructorArgument( DevelopMentor Courses - Sunday, April 8, 2012 %>
| | |