Click here to Skip to main content
12,761,707 members (42,769 online)
Click here to Skip to main content
Add your own
alternative version


3 bookmarked
Posted 2 Jan 2014

Consume Online WCF Service

, 2 Jan 2014 CPOL
Rate this:
Please Sign up or sign in to vote.
This tip gives information about tools and consumption of WCF Services.


This tip gives information about a list of tools to test web / WCF service, and also gives information about consumption of online WCF Services in the client applications.


After learning WCF services, I created and deployed services in local, but didn't get a chance to consume online WCF services. After knowing about the availability of online WCF services, I want to share information with everyone so that everyone can consume those WCF services for learning and testing.

The following tools are used to test services:

  1. WcfTestClient.exe -> Go to Visual Studio command prompt -> type wcftestclient.exe, this tool is used while implementing service
  2. SoapUI
  3. WcfStrom -> Useful to know metrics of the services

Using the Code

In this tip, I will show you consumption of WCF services in client applications.

I found IfscCodeWcfService which is running online. I tried to consume that live service in two client applications.

I created two projects:

  1. Web Client Application
  2. Desktop Client Application

Each application consists of 2 forms / pages:

  1. Displaying all banks list:
    IfscCodeServiceRef.IifscCodeServiceClient serviceclient;
    private void DisplayAllBanks_Load(object sender, EventArgs e)
        serviceclient = new IfscCodeServiceRef.IifscCodeServiceClient();
        dataGridView1.DataSource = serviceclient.GetAllBanks().ToList();
  2. Displaying ifsccodes list of selected bank:
    IfscCodeServiceRef.IifscCodeServiceClient serviceclient;
    private void IfscCodesByBankId_Load(object sender, EventArgs e)
        serviceclient = new IfscCodeServiceRef.IifscCodeServiceClient();
        dataGridView1.DataSource = serviceclient.FindIfscCodesByBankId(1).ToList();

For two applications, I implemented the same code that is the advantage of services.

Points of Interest

I understood the advantages of services while consuming heterogeneous applications and platforms, learned about end points, wsdl, tools of WCF services.

I tried to consume services from the site WcfSpro.

Consumed service for demo is Ifsc Code Service.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

No Biography provided

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 2 Jan 2014
Article Copyright 2014 by Srinivas Kumar Pasumarthi
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid