codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  webservice status  gemprasad at 07:25 on Monday, July 02, 2007
 

Hi,

I have yrl for wen service.
How to find whether it is working or not through code?
without adding webreferences, opening web page and all....


Regards,
GEM

  Re: webservice status  gemprasad at 09:53 on Monday, July 02, 2007
 

You can get status code like this......



String sSourceURL = "http://localhost/testws/service.asmx";

System.Uri myUri;
myUri = new System.Uri(sSourceURL);
HttpWebRequest HttpWRequest;
HttpWRequest = (HttpWebRequest)WebRequest.Create(myUri);

HttpWebResponse HttpWResponse;
HttpWResponse = (HttpWebResponse)HttpWRequest.GetResponse();

int iStatCode = (int)HttpWResponse.StatusCode;
return iStatCode;


Regards,
GEM

  Re: webservice status  scolbert at 21:53 on Friday, July 06, 2007
 

what do you mean "working"?

sammy at Personafile








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Java code for Insert picture on the table in spreadsheet
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me
•  pls help me with this..
•  Re: Security - Code verify
•  Job @ EarlySail
•  Job @ EarlySail (perl)
•  IPC problem


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007