Jan 19

As you know, the New Windows Communication Services (WCF) will replace the existing ASP.NET ASMX Web Services. So, it will be wise to plan it from today as how to transit in this new service model era.  I first tried experimenting with WCF Service almost a year ago with the release of .NET 3.0 but VS 2005 and VISTA did work happily on my machine but now I like VS 2008.  I revisited WCF again with the release of .NET 3.5, all the sample available on the web are either old or do not give enough information if you are looking for information as how to use this service in different way over different protocol, which can closely mimic a small real word example .  So, I had to spend hours trying to find solutions and put the pieces together. So, I finally thought to create an example to help others who are facing the same situation. I have tried to closely mimic the ASMX Web Service uses, which I posted in my earlier post because most of us will be planning to convert from existing old one.  With all the experiments I would give one key Mantra for WCF, dig the Config file specially to understand how to configure BEB (Binding, Endpoint and Behavior). This example deals with CRUD operation on Customer data which I used in earlier post. For the simplicity I am using XML file for the data source and will consume this service with WS* Standard, SOAP based XML POST, Plain Old XML (POX) and HTTP GET and POST. I believe these are the common uses along with TCP, named pipe and MSMQ. Read More

 

Tags: |

Related posts

Comments

kavya

Posted on Tuesday, 8 April 2008 14:56

hi,

excellent post. i'm new to wcf. could u tel me how to post data using c#.net. i believe xmlhttp is a com component. i wanna know in managed code.

please help

Vishwa

Posted on Tuesday, 8 April 2008 16:36

You can use C# from Code behind at server side, however, if you need to post using client side script such as javascript, you can use old way such as XMLHTTP or new way AJAX. Using AJAX, any managed code will be suitable because it finally gets invoked at server side.

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

Posted on Thursday, 21 August 2008 14:14