Groups | Blog | Home
all groups > asp.net webservices > february 2008 >

asp.net webservices : WCF 3.5 Hosted in IIS Sample?


coconet
2/26/2008 10:50:12 PM


I have a class a method that accepts a custom Type and a string as
parameters.

I would like to expose this class with a WCF web service in .NET 3.5.
Hosted in IIS.

Can anyone show a sample of an ASP.NET 3.5 web site making a
synchronous call to the WCF service? I have web-searched all over the
place for a clean and simple sample and have found nothing.


Thanks.

stcheng@online.microsoft.com (
2/27/2008 7:00:55 AM
Hi Coconet,

You can get many samples for .NET 3.0(WPF, WCF) through the windows SDK
samples:

#Windows SDK .NET Framework 3.0 Samples
http://www.microsoft.com/downloads/details.aspx?FamilyID=22B58B6C-8F98-40D0-
880D-C3339C5DA01E&displaylang=en

Also, the .NET 3.0 official site has also provided many samples and
reference:

#netfx3 WCF samples:
http://netfx3.com/files/

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
[quoted text, click to view]
coconet
2/27/2008 1:43:33 PM

I was under the impression that 3.5 added new WCF functionality,
especially when hosting in IIS 6 and 7.

Can you show some examples then?

stcheng@online.microsoft.com (
2/28/2008 5:36:59 AM
Hi Coconet,

So for hosting WCF in IIS, the service component code logic is the same as
hosting it in winform or console application. Therefore, I wonder whether
what you need is some visual illustration on the steps to configure WCF
components to run in IIS hosted web application? if so, here are two blog
articles from msdn blog site that will be helpful to you:

#How To: Hosting a WCF Service in IIS
http://blogs.msdn.com/trobbins/archive/2006/11/27/how-to-hosting-a-wcf-servi
ce-in-iis.aspx

#Hosting WCF Service in IIS
http://blogs.msdn.com/amitlale/archive/2007/05/21/hosting-wcf-service-in-iis
..aspx

http://msdn2.microsoft.com/en-us/library/aa751792.aspx

If you want to do tests through some existing WCF services, you can try
downloading the samples I mentioned in the previous message and deploy them
in IIS via the above reference.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
[quoted text, click to view]
AddThis Social Bookmark Button