Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
QuestionDetermining if a file can be opened Pin
Colin Angus Mackay22-Jul-06 1:03
Colin Angus Mackay22-Jul-06 1:03 
AnswerRe: Determining if a file can be opened Pin
Not Active22-Jul-06 2:15
mentorNot Active22-Jul-06 2:15 
QuestionCall to unmanaged dll function Pin
Aslam Bari22-Jul-06 0:36
Aslam Bari22-Jul-06 0:36 
AnswerRe: Call to unmanaged dll function Pin
mav.northwind23-Jul-06 4:04
mav.northwind23-Jul-06 4:04 
QuestionSearch Results (Win Forms 2.0) Pin
TAREQ F ABUZUHRI22-Jul-06 0:20
TAREQ F ABUZUHRI22-Jul-06 0:20 
AnswerRe: Search Results (Win Forms 2.0) Pin
Sean8922-Jul-06 10:23
Sean8922-Jul-06 10:23 
QuestionGetPathDependency Pin
TAREQ F ABUZUHRI22-Jul-06 0:20
TAREQ F ABUZUHRI22-Jul-06 0:20 
QuestionHypothetical situation that I wouldn't know exactly how to handle Pin
TAREQ F ABUZUHRI22-Jul-06 0:19
TAREQ F ABUZUHRI22-Jul-06 0:19 
Hello,

I was thinking the other day about how I would solve the following problem, but I just couldn't seem to come up with a really logical solution... or at least what I would think is a best practice. How would you handle the following?

Say I have winform client apps... any number of them. Lets say that this app has a couple web services. Okay, now lets say that one of the web service is like a broker web service... it also contains other web services. The client isn't aware of all the web services the broker service is hitting, the broker is responsible for knowing that. The point here is that we have a web service which may hit another web service, could be anything. Now, here's the hard part... getting all of the errors in case one happens. So client requests data from Service1. Service one then hits Service2, Service3 and Service4. Service3 errors out because the server that it's on is down. Service4 errors out because of a database issue or something. I want to return something back to the client listing all of the details of why the transaction failed (like in a log file or something), like

Success: Transaction to Service1 was successful
Success: Transaction to Service2 was successful
Error: Could not access Service3.
Error: Duplicate Primary Keys in Service4.


How do I handle this? Lets take it to another level and say that Service2 in itself might contain other services, so the transaction to Service2 was successful, but the transaction to Service2a failed for some reason.

The trick is keeping a single log file that contains all of the details on why various services failed, even if those service contain services which may have failed for some reason. What's the best way to handle something like this? I can't have every method return a bool if it passes or fails because it might already have a return value... So I can't just call GetData on Service2 and return a bool whether it passed or failed because it might already return a dataset... Does this make sense?


Keep in mind this is hypothetical, but I am just wondering what the best practice is in handling this type of scenerio.

Thanks!


Palestine

AnswerRe: Hypothetical situation that I wouldn't know exactly how to handle Pin
Nader Elshehabi22-Jul-06 2:24
Nader Elshehabi22-Jul-06 2:24 
AnswerRe: Hypothetical situation that I wouldn't know exactly how to handle Pin
InOut.NET22-Jul-06 2:36
InOut.NET22-Jul-06 2:36 
QuestionHow do I manage the checkonClick/uncheck on a menu item Pin
TAREQ F ABUZUHRI22-Jul-06 0:18
TAREQ F ABUZUHRI22-Jul-06 0:18 
AnswerRe: How do I manage the checkonClick/uncheck on a menu item Pin
Aslam Bari22-Jul-06 0:31
Aslam Bari22-Jul-06 0:31 
QuestionHow To Read SoapMessage From Websphere MQ Pin
TAREQ F ABUZUHRI22-Jul-06 0:18
TAREQ F ABUZUHRI22-Jul-06 0:18 
Questionremovegroup, currently there is no ogroup object) Pin
TAREQ F ABUZUHRI22-Jul-06 0:16
TAREQ F ABUZUHRI22-Jul-06 0:16 
AnswerRe: removegroup, currently there is no ogroup object) Pin
InOut.NET22-Jul-06 3:04
InOut.NET22-Jul-06 3:04 
Questionremovegroup, currently there is no ogroup object Pin
TAREQ F ABUZUHRI22-Jul-06 0:15
TAREQ F ABUZUHRI22-Jul-06 0:15 
QuestionGraphicsPath [modified] Pin
-Yoyosh-21-Jul-06 23:53
-Yoyosh-21-Jul-06 23:53 
AnswerRe: GraphicsPath Pin
mav.northwind22-Jul-06 6:42
mav.northwind22-Jul-06 6:42 
Questiondll comparison Pin
Ananthalvan21-Jul-06 23:20
Ananthalvan21-Jul-06 23:20 
AnswerRe: dll comparison Pin
Nader Elshehabi22-Jul-06 2:12
Nader Elshehabi22-Jul-06 2:12 
GeneralRe: dll comparison Pin
Ananthalvan25-Jul-06 4:46
Ananthalvan25-Jul-06 4:46 
GeneralRe: dll comparison Pin
Nader Elshehabi27-Jul-06 3:29
Nader Elshehabi27-Jul-06 3:29 
QuestionUrgent Help Required in Databindings [modified] Pin
Vinu M21-Jul-06 22:48
Vinu M21-Jul-06 22:48 
QuestionVideo Play Out(Please Help Me Urgent) Pin
shakil ahmed21-Jul-06 21:05
shakil ahmed21-Jul-06 21:05 
QuestionDrag Drop from ListView to Explorer Pin
fperugini21-Jul-06 13:36
fperugini21-Jul-06 13:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.