Connecting Tech Pros Worldwide Forums | Help | Site Map

web services

=?Utf-8?B?QVZM?=
Guest
 
Posts: n/a
#1: Jul 19 '07
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
Guest
 
Posts: n/a
#2: Jul 19 '07

re: web services


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)

AVL wrote:
Quote:
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....
>
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
 
Posts: n/a
#3: Jul 19 '07

re: web services


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



"AVL" wrote:
Quote:
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
Guest
 
Posts: n/a
#4: Jul 28 '07

re: web services


Hi,

Peter Bromberg [C# MVP] wrote:
Quote:
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/myjavascri.../check-url.txt

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

HTH,
Laurent
--
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
Guest
 
Posts: n/a
#5: Jul 28 '07

re: web services


Hi again,

Laurent Bugnion, MVP wrote:
Quote:
Hi,
>
Peter Bromberg [C# MVP] wrote:
Quote:
>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/myjavascri.../check-url.txt
>
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
--
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
Closed Thread