Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi this is my code that i running a function from web service
DataSet ds = new DataSet();
DataTable dt = new DataTable();
NegsoNotifier.WorkItemsService.WorkItemsSoapClient wiservice;
wiservice = new NegsoNotifier.WorkItemsService.WorkItemsSoapClient();
System.ServiceModel.EndpointAddress adr;
adr = new System.ServiceModel.EndpointAddress(Weburl);
wiservice.Endpoint.Address = adr;
//wiservice.Open();

ds = wiservice.GetMyWorkItems(Username, Password);
dt = ds.Tables[0];


How can I understand this Web service is running or not?

Thanks.
Posted
Updated 3-Jul-10 1:55am
v2

What do you mean by webservice running or not?

Browse the webserive in a browser using webservice URL and you would be able to know if its up or not.
Were you asking anything other than that?
 
Share this answer
 
1. Generally, when service is not running, we get "Service Unavailable" as error message is browser.

2. An exception with HTTP status code as 503. 503-Service Unavailable (IIS 6.0)[^]
 
Share this answer
 
v2
Do you want to debug the webservice project ?? :)
You can use this methode, i hope this methode can help u.. :)

First open your visual studio, and then open your webservice project by using this key (Shift + Alt + O).
Second plese choose "Local IIS", and then choose the webservice project that what you want to debug.. :)
Finally, you can add breakpoint in your code, and then press F5 for running your webservice project. ;)








NB : You can make a simple ASP.NET project, and then add Web Reference. This is a way to determine whether the WebService you create are running well...
 
Share this answer
 
Assuming that this is your web service call, it will fail, if the webservice is not running.

NegsoNotifier.WorkItemsService.WorkItemsSoapClient wiservice;
wiservice = new NegsoNotifier.WorkItemsService.WorkItemsSoapClient();
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900