Asp.Net: invoke WCF method with WCF Test Client

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)

When deploying a Silverlight application we ran into problems a WCF web-service, to find out what the problem was I wanted to invoke the method.

Microsoft shipped an application for invoking methods from your Windows PC (WCFtestclient.exe). The following steps explain how to use WCFtestclient.exe.

First startup Visual Studio 2008 Command Prompt. In the command prompt type wcftestclient, the application will startup.

Now we need to add the Service. Click File and Add Service.

 Asp.Net: invoke WCF method with WCF Test Client WcfTestClientAddWebService

Add the URL to your service in the pop-up and pres ok. The service will now add all methods from your service. You can add multiple service URLs.

Double click the method you want to invoke from the tree on the left pane. Enter the values that are required for the Invoke and press Invoke. The method will be invoked.

Asp.Net: invoke WCF method with WCF Test Client WCF Test Client Invoke Method 300x188

The right bottom pane will show the response. In my case this shows the Stack-trace because of the error. Normally this will show the web-service response (XML).

With the stack-trace I could located the error and fix it.

Hope this helps,

Pieter

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Asp.Net: invoke WCF method with WCF Test Client Pieter Brinkman avatarAuthor: Pieter Brinkman ()

Pieter is Technical Marketing Manager for Sitecore Netherlands and owner of Gaatverweg.nl. He has more than ten years experience with software developing in multiple programming languages and with different Content Management Systems. Before joining Sitecore Pieter was a lead developer for multiple Sitecore and .Net projects, he joined Sitecore in 2011 as an Solution Architect in The Netherlands, after two years as an Solution Architect he joined the Technical Marketing department. In the role as Techinical Marketing Manager he is responsible for the Global MVP program and the Sitecore technical branding strategy. You can follow Pieter on twitter: @pieterbrink123 or Google+

Asp.Net: invoke WCF method with WCF Test Client WebsiteAsp.Net: invoke WCF method with WCF Test Client TwitterAsp.Net: invoke WCF method with WCF Test Client Google PlusAsp.Net: invoke WCF method with WCF Test Client Linkedin

Related posts

Asp.Net: keyboard sort items
LINQ: Creating a if statement in Linq query
WCF webservice error with DBML objects
Cover article in .Net magazine (dutch)

0 Responses to Asp.Net: invoke WCF method with WCF Test Client

Comments
Tweets
Pingbacks
  • Click on a tab to select how you'd like to leave your comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>