GJJ
GJJ

Reputation: 494

writing a console program to test my wcf service in silverlight

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

Answers (4)

redevil
redevil

Reputation: 82

you can use wcf storm, google it and download

Upvotes: 1

marc_s
marc_s

Reputation: 755391

Step 1: Create a new console app: File > New Project > in the Windows tab > Console app

enter image description here

Step 2: add a service reference to your service: in Solution Explorer, right-click on References > Add Service Reference and add your service

enter image description here

enter image description here

Step 3: code your calls to the service and test your service

So which part is not clear to you?

Upvotes: 3

kobe
kobe

Reputation: 15835

There is no need to write , its already availble

http://msdn.microsoft.com/en-us/library/ee383989.aspx

Upvotes: 1

Peyton Crow
Peyton Crow

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

Related Questions