Commerce Server General - Checking MarketingWebService

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > March 2006 > Checking MarketingWebService





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Checking MarketingWebService
Tbone

2006-03-09, 5:52 pm

Has anyone written anything that checks that the web service is running
before trying to consume?

We are running price breaks by quanity in Discount Manager. This has been a
weak link in our web app and I'd like to check that the service is available,
if not bypass executing the code that displays the price break.
WenJun Zhang[msft]

2006-03-10, 7:53 am

Hi,

I don't know if anybody has written some wrapped classes to perform the
checking.

However it shouldn't be difficult if you use some code to do it. To see if
the WebService site is online, just use HttpWebRequest to send a request to
the server and see if the response is 200. To check if the web service is
available, you can call it at first and try/catch this.

Thanks.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com