DCSIMG
WCF 3.5 - Gady Elkarif's Blog

Gady Elkarif's Blog

Browse by Tags

All Tags » WCF 3.5 (RSS)
To JSON or not to JSON?
To JSON or not to JSON? I want to introduce some performance testing about DataContractJsonSerializer against DataContractSerializer . But first, I want to explain what is JSON and DataContractJsonSerializer? What is JSON? JSON (JavaScript Object Notation) is a lightweight syntax for representing data that enabling fast exchanges of small amount of data between client browsers and AJAX -enabled Web services. JSON encodes data using subset of the JavaScript object literals, and it easier to "parse"...
Posted: Jun 15 2008, 10:19 PM by egady | with 4 comment(s)
תגים:, ,
WCF and ASP.NET AJAX Integration
WCF and ASP.NET AJAX Integration This post is part of WCF REST Presentation I show last week at Microsoft. I played with the WCF and ASP.NET AJAX integration, and created a sample web site which by can integrate WCF service with Microsoft Virtual Earth . The Service Contract The following contract is simple service contract with one method GetLocation(). The namespace "Sample.Services" will be used later as a prefix to the generated proxy. AspNetCompatibilityRequirementsMode allows the...
Creating RESTful Web Services with WCF
Hi, I'm giving a presentation tomorow about the "New HTTP Programming Model in WCF 3.5". I will talk about RESTful services, show demos on WCF, and using some known REST API's. Some teasers: Attached below the invitation, hope to see you there. Gady. Israel Visual C * Users Group May Meeting Date: Wednesday, May 21, 17:00 - 20:00 Place: Microsoft Israel Hapnina 2 (Amdocs Building) Raanana +972 (9) 762-5100 Topic : “ Creating RESTful Web Services with WCF ” Lecturer : Gady Elkarif...
Posted: May 20 2008, 02:12 PM by egady | with 1 comment(s)
תגים:,
WCF Quick Start - Designing Service Contracts
WCF Quick Start - Designing Service Contracts The first step in creating WCF service is to define the Service Contract . Each service in WCF consists of endpoints, and each endpoint consists of an address, a binding, and a contract. Contracts of web services consists from set WSDL and XSD documents. In WCF , contract are a set of .NET type definitions annotated with special attributes, which can be turned into a set of WSDL and XSD documents. There are three types of contracts in WCF : Service Contract...
Posted: Apr 17 2008, 04:19 PM by egady | with 3 comment(s)
תגים:, , , ,
Silverlight Chart User Control
Silverlight Chart User Control In the last month I was creating a simple Silverlight Application which display a Financial Chart . It was in the following post: Displaying Chart using Silverlight 2.0 User Control In this post I have a better version of the previous chart, which includes: Handling large amount of data Displaying the tags (x-y values) correctly Supporting of resizing Using RESTfull Web Service The result of this project is as showed in the following image: Stock Quote Service Contract...
Creating a Syndication Feed with WCF 3.5
Creating a Syndication Feed with WCF 3.5 The WCF 3.5 Syndication API , include rich support of creating and consuming syndicated content. In this post I'm going to create a service , which provides information about articles both in RSS 2.0 and ATOM 1.0 formats. Service Contract The following code described the service contract, which include two methods with the same uri, but different query parameter format ( rss/atom ). [ ServiceContract ] public interface IArticleService { [ OperationContract...
WCF JSON: Sending Complex Type on Query String
WCF Json: Sending Complex Type on Query String In the previous post HTTP Web Programming with WCF 3.5: Creating a Template based URI I show how to use WebGet and WebInvoke attributes, which makes the operations avaliable via HTTP.GET and HTTP.POST respectively. In this post I will show how to send a complex type via query string on WCF operation via HTTP.GET . Service Contract The following code sample define the service contract and the complex type Product which will send. [ ServiceContract (Namespace...
Posted: Feb 25 2008, 09:59 AM by egady | with 1 comment(s)
תגים:,
WCF Services and AJAX
WCF Services and Ajax In this post I show a sample of a WCF 3.5 service which supports Json . WebGetAttribute.ResponseFormat Property The WebMessageFormat property determines the format of responses sent from a service operation. The two possibe values are Xml and Json . The following example demonstrates how to set the ResponseFormatProperty: [ ServiceContract ] public interface IService { [ OperationContract ] [ WebGet (ResponseFormat = WebMessageFormat .Json)] String SayHello( String name); }...
Posted: Jan 31 2008, 03:31 PM by egady | with 9 comment(s)
תגים:, ,