Click here to Skip to main content
15,889,834 members
Articles / Desktop Programming / WPF

How to Call WCF Services Synchronously and Asynchronously

Rate me:
Please Sign up or sign in to vote.
4.91/5 (48 votes)
16 Jul 2010CPOL9 min read 297.6K   9.1K   167  
This article is an example to show you how to call WCF services synchronously as well as asynchronously.
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="WFCCallExample.Properties" GeneratedClassName="Settings">
  <Profiles />
  <Settings>
    <Setting Name="ApplicationName" Type="System.String" Scope="Application">
      <Value Profile="(Default)">A WCF Service Call Example - Synchronous and Asynchronous Calls</Value>
    </Setting>
    <Setting Name="Author" Type="System.String" Scope="Application">
      <Value Profile="(Default)">Song LI</Value>
    </Setting>
    <Setting Name="DevelopentDate" Type="System.String" Scope="Application">
      <Value Profile="(Default)">07/02/2010</Value>
    </Setting>
    <Setting Name="Copyright" Type="System.String" Scope="Application">
      <Value Profile="(Default)">The Code Project Open License (CPOL)</Value>
    </Setting>
    <Setting Name="Version" Type="System.String" Scope="User">
      <Value Profile="(Default)">1.0.0.0</Value>
    </Setting>
  </Settings>
</SettingsFile>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
United States United States
I have been working in the IT industry for some time. It is still exciting and I am still learning. I am a happy and honest person, and I want to be your friend.

Comments and Discussions