Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

web services

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AVL - 19 Jul 2007 13:54 GMT
hi,
i need to check the availability of my web service....
how can i do that.
i dont want to call any of the methods present in web service to test
availability..
i just want to ping to the web service....how can i do that....
bruce barker - 19 Jul 2007 16:10 GMT
do a http get of the service, it should return the wsdl (which is
discovered by reflection). you could also add a ping method that did
more testing.

-- bruce (sqlwork.com)

> hi,
> i need to check the availability of my web service....
> how can i do that.
> i dont want to call any of the methods present in web service to test
> availability..
> i just want to ping to the web service....how can i do that....
Peter Bromberg [C# MVP] - 19 Jul 2007 20:24 GMT
Probably a HEAD request is the one that will return the least amount of
indication and still show that the service ASMX page is available.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
bogMetaFinder:    http://www.blogmetafinder.com

> hi,
> i need to check the availability of my web service....
> how can i do that.
> i dont want to call any of the methods present in web service to test
> availability..
> i just want to ping to the web service....how can i do that....
Laurent Bugnion, MVP - 28 Jul 2007 21:27 GMT
Hi,

> Probably a HEAD request is the one that will return the least amount of
> indication and still show that the service ASMX page is available.
> -- Peter

I did an example of that some time ago for the JavaScript newsgroup:

http://www.galasoft-lb.ch/myjavascript/IsUrlActive/check-url.txt

demo here:
http://www.galasoft-lb.ch/myjavascript/IsUrlActive/

HTH,
Laurent
Signature

Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch

Laurent Bugnion, MVP - 28 Jul 2007 21:43 GMT
Hi again,

> Hi,
>
[quoted text clipped - 8 lines]
> demo here:
> http://www.galasoft-lb.ch/myjavascript/IsUrlActive/

Sorry, try rather that one:
http://www.galasoft.ch/myjavascript/IsUrlActive/

XmlHttpRequest can only ping the domain of origin for security reason.
galasoft-lb.ch and galasoft.ch are both pointing to the same server, BUT
the client doesn't know this, and throws an error when galasoft-lb.ch
tries to ping galasoft.ch...

Greetings,
Laurent
Signature

Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.