| |
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.
|
9 Articles match "JSON","Web"
| 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. Both the request and response are formatted as a simple Json string. DevelopMentor Courses - Tuesday, April 24, 2012 |
20 Articles match "JSON","Web"
| The Latest from DevelopMentor | MORE | | A Roundup of MongoDB Management Tools Now there is one less worry in managing your web-scale data. Easily build indexes – either specify Json or use the point and click (visual) interface. Installs into your web app (provided you’re using Ruby or PHP). My take : This is a very interesting web monitoring app. Designed with security and ease of use, MMS collects statistics on all key server and hardware indicators and then presents the data in a powerful web console. 'I’ve been working with MongoDB for a long time now. SQL Server Management Studio ). The news is good. link]. Admin GUI). Michael C. Kennedy's Weblog - Monday, April 22, 2013 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. Both the request and response are formatted as a simple Json string. DevelopMentor Courses - Tuesday, April 24, 2012 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 | -
| The Best from DevelopMentor | MORE | - 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. With the ASP.NET Web API the default is JSON. So this request returns a JSON data stream the XElement can’t handle. The Problem Solver - Tuesday, March 13, 2012 - 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. Both the request and response are formatted as a simple Json string. DevelopMentor Courses - Tuesday, April 24, 2012 - 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. Tony and Zuzana's World - Saturday, September 10, 2011 - 11 Killer Open Source Projects I Found with NuGet
It's comprehensive C# API wrapper library for accessing [link] , using XML or JSON to read/write. The Facebook C# SDK helps.Net developers build web, desktop, Silverlight, and Windows Phone 7 applications that integrate with Facebook. So maybe I'm late to the party, but I recently started playing with NuGet. It's a killer new way to find, install, maintain, and manage references to open source libraries in Visual Studio 2010. Plenty of people have written about it ( Phil Haack and Scott Hanselman for example). RazorEngine at [link]. YUI Compressor for.Net at [link]. Here you go. Michael C. Kennedy's Weblog - Wednesday, January 19, 2011 - Access Control Service: Passive/Active Transition Sample
In addition to the existing front ends (web [WS-Federation], console [SOAP & REST], Silverlight [REST]) and error handling , it now also includes a WPF client that shows the passive/active transition with a SOAP service as illustrated here. All the ACS interaction is encapsulated in a WPF user control that: retrieves the JSON feed. Here you can find my updated ACS2 sample. displays a list of supported identity providers. triggers the sign in via a browser control. retrieves the token response. All you need to supply is the ACS namespace and the realm. Have fun! www.leastprivilege.com - Thursday, June 23, 2011 %>
| | |