| |
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.
|
29 Articles match "Web","XML"
| Related DevelopMentor Courses | MORE | | Ninject WCF Extensions for RESTful Services Address.ToString(); // Act string result = client.DownloadString( "Hello" ); string greeting; if (format == "Xml" ) greeting = SerializationHelper.DeserializeXml< string >(result); else if (format == "Json" ) greeting = SerializationHelper.DeserializeJson< string >(result); else throw new Exception ( "Format not supported: " + format); // Assert Assert.That(greeting, Is.StringMatching( "Hello" )); } }. My SerializationHelper class simplifies the task of converting Xml and Json to and from CLR objects. Download the code for this post. NinjectWebCommon.cs ToSelf().Named( DevelopMentor Courses - Sunday, April 8, 2012 Roll Your Own REST-ful WCF Router Nevertheless, there are times when it might make sense to build a router that can talk to clients who don’t know anything about Soap, for example, an AJAX web application. You can also achieve a more compact data representation with plain old XML (POX) or Javascript Object Notation (JSON), which could result in greater throughput. 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. Download the code for this post here. FirstOrDefault(); if (region != DevelopMentor Courses - Tuesday, April 24, 2012 Guerrilla.NET (US) Training LINQ : Use LINQ to access objects, XML, and SQL relational data MVC : Learn the how build modern web applications using ASP.NET MVC 3.0 MVC : Build modern web applications and services using JavaScript, jQuery, AJAX, REST, ASP.NET MVC, and more. oData : Expose your SQL data sources to rich clients and RIA web applications using WCF Data Services and oData. LINQ : Use LINQ to access objects, XML, and SQL relational data MVC : Learn the how build modern web applications using ASP.NET MVC 3.0 dynamic typing from C# 4.0, assuming Silverlight 5.0 and jQuery. DevelopMentor Courses - Tuesday, March 1, 2011 |
37 Articles match "Web","XML"
| The Latest from DevelopMentor | MORE | | The Architecture of WCF Over the lifetime of Windows there have been many technologies to achieve this: sockets, DCOM, MSMQ,NET Remoting, ASMX Web Services and more. They are implementations of Web Service specification such as WS-Security, WS-AtomicTransaction and WS-ReliableMessaging and pass any required information to-and-fro using the message’s Headers collection. The Text encoder puts textual XML SOAP messages on the wire. The POX (Plain Old XML) encoder strips of the SOAP pieces and just places the body of the message on the wire and, as such, isn’t limited to XML. Messages. DevelopMentor Courses - Sunday, April 7, 2013 Simple WCF SOAP-REST Multi-Project Template After clicking OK, simply press F5 to start the ASP.NET Development web server (aka Cassini), and press Ctrl+F5 to launch the client and keep the console from closing. First, you’ll notice only three projects are created: Client, Service and Web. The web host exposes both SOAP and REST style endpoints but does not sport the usual REST bells and whistles, such as integration with the ASP.NET routing module. The REST client uses LINQ to XML to parse the response. Download the source code for this post. There are a couple of things different about this project. Enjoy. DevelopMentor Courses - Monday, June 11, 2012 WCF SOAP and REST Multi-Project Visual Studio Templates Similarly, the service resides in a separate project than the web host, which makes it easier to re-deploy it in a self-hosting scenario (such as a Windows Service). placed Entities and Services into separate projects than the Web host, but I split out the service interface into its own project so that it could be shared between the service and client projects – I typically use a channel factory in the client and it needs the interface. The web host exposes a basic http endpoint using the built-in ASP.NET Development Web Server and a fixed port number, which you can easily change. DevelopMentor Courses - Sunday, June 10, 2012 | -
| The Best from DevelopMentor | MORE | - Using the WCF Web API in an ASP.NET MVC application
Warning: This post is based on a prerelease version of the WCF Web API In my previous blog post I showed how to add to and use the new WCF Web API a console application using NuGet. Now that works but it is far more likely that you will want to be using IIS and host the REST service as part of a web application. Not that there is anything specific to MVC I need here, all I need is a web site and I could have started with a WebForms application just the same. Just like in this post we can add a reference to the WCF Web API to our project. repo = repo; }. Enjoy! The Problem Solver - Monday, June 13, 2011 - This Thursday in Bangor, ME: The Dueling BAND Joes - jQuery and SQL XML
This session has Jeff showing how you can work with XML natively in SQL Server, Greg showing you how to integrate jQuery into your web apps, and then both Joes will show how you can make a neat data-centric solution using the two technologies together. He currently builds web sites by day and night, working as a web software developer for EMHS in Brewer and doing side jobs where he can. He loves doing web work and enjoys it when someone says "That can't be done" Register Now. I won’t be able to make it, but just to remind everyone else :-). The Blomsma Code - Wednesday, October 28, 2009 - Getting started with the WCF Web API
Warning: This post is based on a prerelease version of the WCF Web API When designing services the REST style is becoming more and more popular. Enter the WCF Web API The new Web API is supposed to change that and enable a lot more flexibility to create more powerful REST services using WCF. At the moment the Web API is still in a preview state so things might change quite a bit before it is actually released so keep that in mind if you read this some time in the future. The equivalent service using the WCF Web API is very similar. ServiceContract]. Enjoy! The Problem Solver - Tuesday, May 31, 2011 - Client side support with the ASP.NET Web API
In order to make life even easier the ASP.NET Web API adds some client support in the form of the HttpClient class. But first lets see what happens if we just hit an ASP.NET Web API endpoint with a simple client. And the ASP.NET Web API controller looks like this: 1: public class ProductsController : ApiController. Given that the Web API supports returning both XAML and JSON it would appear the following code would work just fine. And where in the previous WCF Web API this would have worked because XML was the default type if nothing was specified this has changed. The Problem Solver - Tuesday, March 13, 2012 - Using HTTP status codes in a REST service
This SOAP fault is just another piece of XML informing the calling application about whatever was wrong. The best known of these are the 303 See Other and the 301 Moved Permanently which are used a lot on the web to redirect a browser to another URL. Using HTTP status codes with the WCF Web API returning custom HTTP status codes with the WCF Web API is quite easy. When we build services, or write any code for that matter, error can occur and we have to cater for those. But there are far more status codes we can use. For example a database connection failed. else. {. The Problem Solver - Wednesday, July 20, 2011 - Digging into WCF 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. He’ll also get down and dirty using the WCF Web Programming Model and show how WCF makes it easy to serve up POX or JSON, increasing the reach of your services to clients that don’t understand or care about SOAP. It creates a Visual Studio solution with just a single web project. WCF 3.5 Tony and Zuzana's World - Saturday, September 10, 2011 - Ninject WCF Extensions for RESTful Services
Address.ToString(); // Act string result = client.DownloadString( "Hello" ); string greeting; if (format == "Xml" ) greeting = SerializationHelper.DeserializeXml< string >(result); else if (format == "Json" ) greeting = SerializationHelper.DeserializeJson< string >(result); else throw new Exception ( "Format not supported: " + format); // Assert Assert.That(greeting, Is.StringMatching( "Hello" )); } }. My SerializationHelper class simplifies the task of converting Xml and Json to and from CLR objects. Download the code for this post. NinjectWebCommon.cs ToSelf().Named( DevelopMentor Courses - Sunday, April 8, 2012 %>
| | |