Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tutorial on Consuming a WCF service in ASP.Net web site?

Tags:

wcf

I'm attempting to create my first WCF service.

I've created the service and now I'm trying to call it from a asp.net (vb) web site and I've tried adding a web reference to it and using the scvutil.exe to consume the service.

So far neither have worked. It's not letting me declare the service in my code. If someone could point me to a good tutorial on how to consume a WCF service in an ASP.Net web site that would be great.

I've found numerous on how to use them with AJAX or silverlight or windows apps but nothing on using it in just a plain old website.

like image 636
Robert Avatar asked Jul 06 '09 14:07

Robert


People also ask

How do you consume WCF service?

Consuming WCF Service Now right click on WCFClient project select "Add Service Reference" and paste copied URL in Address section of "Add Service Reference" dialog box and click on Go button and rename Namespace as "UserService" and click ok button.

What is WCF service in asp net?

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application.


1 Answers

Please see Beginner's Guide to Windows Communication Foundation. It's part of the WCF Developer Center on MSDN, which is full of good resources.


The link above is broken. Some other links I've found while searching for it:

  • Developing Service-Oriented Applications
    • Windows Communication Foundation
      • Conceptual Overview
      • Getting Started Tutorial
        • How to: Create a Windows Communication Foundation Client
      • Basic WCF Programming
like image 197
John Saunders Avatar answered Sep 21 '22 04:09

John Saunders