Sidharth Panwar
Sidharth Panwar

Reputation: 4654

How to call a local WCF service?

I'm creating a test component for my application and would like to test the wcf service endpoints to ensure that they're up and working. I'm planning to call the service with dummy data to check if it's working. I need the following:
1. Is there a better way than using dummy data?
2. How to call a local service? Can I use the HttpWebRequest to post data to it by providing relative path? Or else, can I add a service reference using relative path?

Upvotes: 2

Views: 387

Answers (1)

Daniel A. White
Daniel A. White

Reputation: 190943

You could have a Ping or Echo method.

I would just add a service reference to your test component to your service.

Upvotes: 3

Related Questions