| |
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.
|
18 Articles match "Restful"
See all articles with
"Restful"
| The Latest from Tony and Zuzana's World | MORE | | Building Scalable and Secure WCF Services Here is a web.config file with custom SOAP and REST bindings and Keep-Alive disabled. keepAliveEnabled = " false " /> </ binding > < binding name = " rest-secure-nokeepalive " > < webMessageEncoding /> < httpsTransport manualAddressing = " true ". The sample project contains the necessary binding configurations for both SOAP and REST style endpoints. Technical REST SOAP WCFThe key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. Download the code for this blog post here. DevelopMentor Courses - Monday, June 18, 2012 Simple WCF SOAP-REST Multi-Project Template did it again: another multi-project Visual Studio template – this time for a simple WCF service that exposes both SOAP and REST endpoints. My other REST and SOAP templates are intended as a starting point for more real-world WCF services. Search for “WCF SOAP-REST” in the Online Gallery, then click Download to install the extension. Then to use the template, simply select New Project from the File menu, click on the WCF category and select “WCF SOAP and REST Simple Service.” Here is code in the client project that uses SOAP and REST to communicate with the service. DevelopMentor Courses - Monday, June 11, 2012 | | The Best from Tony and Zuzana's World | MORE | | Secure WCF REST Services with a Custom UserNamePasswordValidator < serviceBehaviors > < behavior > < serviceCredentials > < userNameAuthentication userNamePasswordValidationMode = " Custom " customUserNamePasswordValidatorType = " Security.PasswordValidator, Security " /> </ serviceCredentials > </ behavior > </ serviceBehaviors > This is all fine and dandy, but it assumes that clients will only be talking Soap – what about REST-ful clients who don’t know a thing about Soap? Technical REST Security WCFDownload the code for this blog post here. netsh http add sslcert ipport=0.0.0.0:2345 DevelopMentor Courses - Monday, May 28, 2012 Building Scalable and Secure WCF Services Here is a web.config file with custom SOAP and REST bindings and Keep-Alive disabled. keepAliveEnabled = " false " /> </ binding > < binding name = " rest-secure-nokeepalive " > < webMessageEncoding /> < httpsTransport manualAddressing = " true ". The sample project contains the necessary binding configurations for both SOAP and REST style endpoints. Technical REST SOAP WCFThe key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. Download the code for this blog post here. DevelopMentor Courses - Monday, June 18, 2012 Ninject WCF Extensions for RESTful Services had the need recently to set up a REST-style WCF Services project and wanted to use Ninject for DI with it. Luckily, the Ninject WCF Extension project had been updated to support REST, so I updated the Nuget package and discovered the project would not compile. Typically when exposing a REST-type endpoint from a WCF service, you would leverage the ASP.NET UrlRoutingModule by adding a ServiceRoute to the RouteTable in the Application_Start method of your Global.asax.cs Browsing to the REST-endpoint, and appending /help to the url, displays a list of available operations. DevelopMentor Courses - Sunday, April 8, 2012 | - Digging into WCF REST
Last Thursday evening I presented a talk to the Dallas.NET User Group on support in WCF 4 for building REST-ful services. Here is a summary of the talk: To REST or Not To REST? Building REST-ful Services with the WCF Web Programming Model REST is defined as an architectural style for building services that embrace the principles of the web. Tony will provide concrete examples of where it makes sense to implement REST-ful web services. and Visual Studio 2010, folding in features we first saw in the REST Starter Kit, which is now largely obsolete. Tony and Zuzana's World - Saturday, September 10, 2011 - Roll Your Own REST-ful WCF Router
However, as the MSDN documentation for the WCF Router states, “ The Routing Service does not currently support routing of WCF REST services. The reason is fairly simple: the WCF Routing Service performs routing of messages in a way that is independent of the underlying transport, whereas a REST-based architecture is deeply rooted in the HTTP protocol and relies on the URI for delivery semantics. While the ASP.NET MVC or the new ASP.NET Web API might seems like attractive options, WCF is the way to go if you need to accommodate both Soap-based and Rest-ful clients. Enjoy. DevelopMentor Courses - Tuesday, April 24, 2012 - Tony Sneed: Build Async Services with ASP.NET Web API and Entity Framework 6
Web services based either on WCF, which supports both SOAP and REST, or on ASP.NET Web API, which exclusively … Continue reading → If you are building web services that interact with a database, chances are they are not written in a scalable fashion. DevelopMentor Courses - Friday, March 22, 2013 - OData, Where Art Thou?
Technical OData REST WCFGave a talk last night to the Dallas.NET Developer Group on OData and WCF Data Services. ll update this post with some info on the topic, but in the meantime you can download the slides and code for the talk here: [link]. Enjoy. Tony and Zuzana's World - Friday, November 11, 2011 - Peeling Back the Onion Architecture
public class ProductController : Controller { // Services will be injected private IProductService _productService; public ProductController( IProductService productService ) { _productService = productService; }. // // GET: /Product/ public ActionResult Index() { // Get products var products = _productService.GetProducts (selectedCategoryId); // Rest of method follows. } }. Download the code for this article. recently started a consulting project as an architect on an ASP.NET MVC application and quickly found myself immersed in the world of N* open source tools. The Web.Ui Enjoy. Tony and Zuzana's World - Saturday, October 8, 2011 - WCF Data Services versus WCF Soap Services
m going to steal an image from the.NET Endpoint blog , because it shows how each programming model rests on top of the infrastructure provided by WCF. The truth is that RIA Services rests on Data Services, which is turn sits on top of Web HTTP Services (aka REST), which is tightly coupled to HTTP as a transport and XML, Atom or Json as a format. The other way to go is to select a REST-based programming model, which leverages the universality of the HTTP protocol and uses a URI addressing scheme. Additional Resources: White Paper on RESTful Web Services with WCF 3.5 Tony and Zuzana's World - Tuesday, April 13, 2010 - Global Error Handling in ASP.NET MVC 3 with Ninject
In my last blog post I explained how to decouple infrastructure concerns, such as logging, from the rest of your application using a Dependency Injection container, such as Ninject. Download the code for this blog post. implemented an ILoggingService interface with an open-source logger called NLog. In this post I will show you how to implement centralized error handling in an ASP.NET MVC 3 application, so that you can handle exceptions in one place, where you can perform logging as well as display a custom error page. After installing the package, you get a NinjectMVC3.cs Tony and Zuzana's World - Friday, October 21, 2011 %>
193 Articles match "Restful"
See all articles with
"Restful"
| 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. The GetBooks() function gets all books from the REST service. Not a whole lot but the REST convention is to return both an HTTP 201 Created status as well as the location of the new resource in an HTTP header. 'In a previous post I showed how to unit test an ASP.NET WebAPI Controller. 7: _httpClient = httpClient; 8: BaseUrl = new Uri( "[link] ); 9: }. 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: {. 17: {. The Problem Solver - Sunday, May 12, 2013 Reblogged: What should I learn to get started in.NET and web development? Because you can preview the first lesson of each course, you have about 7 hours free and the rest are all included in an affordable $29 subscription. '[ Note : I am reblogging this post which originally was posted to the LearningLine blog. Hope you all find it useful here as well]. recently had a conversation with someone who is looking to make a fresh start and become a developer (coming from other IT positions). The question they had was: What should I learn to get started in.NET and web development? How do I do that?” That’s another blog post. :). jQuery basics. Michael C. Kennedy's Weblog - Monday, May 6, 2013 | -
| The Best from DevelopMentor | MORE | - Secure WCF REST Services with a Custom UserNamePasswordValidator
< serviceBehaviors > < behavior > < serviceCredentials > < userNameAuthentication userNamePasswordValidationMode = " Custom " customUserNamePasswordValidatorType = " Security.PasswordValidator, Security " /> </ serviceCredentials > </ behavior > </ serviceBehaviors > This is all fine and dandy, but it assumes that clients will only be talking Soap – what about REST-ful clients who don’t know a thing about Soap? Technical REST Security WCFDownload the code for this blog post here. netsh http add sslcert ipport=0.0.0.0:2345 DevelopMentor Courses - Monday, May 28, 2012 - Using HTTP status codes in a REST service
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. www.dotnetevents.nl.NET WCF REST dotnetmagWhen 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. This SOAP fault is just another piece of XML informing the calling application about whatever was wrong. But there are far more status codes we can use. For example a database connection failed. else. {. 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 - 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. Enjoy! The Problem Solver - Tuesday, June 21, 2011 %>
| | |