Reputation: 494
Hi i need to write a console program to test a web service that i have, any idea how to do that? and where do i place the codes?
Upvotes: 3
Views: 989
Reputation: 755391
Step 1: Create a new console app: File > New Project > in the Windows tab > Console app
Step 2: add a service reference to your service: in Solution Explorer, right-click on References > Add Service Reference
and add your service
Step 3: code your calls to the service and test your service
So which part is not clear to you?
Upvotes: 3
Reputation: 15835
There is no need to write , its already availble
http://msdn.microsoft.com/en-us/library/ee383989.aspx
Upvotes: 1
Reputation: 882
You do not need to create console for that, you just need to open the application the is created for that. See your WcfTestClient.Exe located most probably at:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
Or, if you insist to have a different test approach eg: Parallel or Stress call, you can just create new Console App and add a service reference to your project and it should be available to you by then.
Upvotes: 1