Click here to Skip to main content
16,018,006 members
Home / Discussions / C#
   

C#

 
GeneralRe: Variable visibility in subclasses... Pin
Guffa29-Nov-07 4:05
Guffa29-Nov-07 4:05 
GeneralRe: Variable visibility in subclasses... Pin
devzav29-Nov-07 5:17
devzav29-Nov-07 5:17 
QuestionCombo box Foriegn key problem Pin
sajid.salim.khan28-Nov-07 5:07
sajid.salim.khan28-Nov-07 5:07 
AnswerRe: Combo box Foriegn key problem Pin
Ennis Ray Lynch, Jr.28-Nov-07 5:27
Ennis Ray Lynch, Jr.28-Nov-07 5:27 
GeneralRe: Combo box Foriegn key problem Pin
sajid.salim.khan28-Nov-07 5:39
sajid.salim.khan28-Nov-07 5:39 
QuestionWeb service Pin
Bazalgette28-Nov-07 4:51
Bazalgette28-Nov-07 4:51 
AnswerRe: Web service Pin
led mike28-Nov-07 5:03
led mike28-Nov-07 5:03 
AnswerRe: Web service Pin
Skippums28-Nov-07 5:03
Skippums28-Nov-07 5:03 
Can you somehow use reflection on web services? Perhaps all of your services (like service1, service2, etc. from your example) could export a property that returns a MethodInfo[] will all its methods, and you could call them (add, subtract, multiply, and divide) from that array? Does your main service know that all sub-services implement only those four methods, or could they implement some arbitrary unknown method that you want to export, like say sqrt? If the methods are known, then you could, upon finding a service, make a call to all the possible methods, and the ones that error MAY not be exported by that service, but the ones that work will for sure be available. So, for example, you set up service4, then your mainService would find service4, then make a call to service4.add(1, 1), which would error. Then you make a call to service4.divide(1, 1), which would possibly not error, in which case you would know that method is exported. I'm not familiar with web services, so I'm just throwing out ideas...

Jeff
AnswerWhat I have done in the past Pin
Ennis Ray Lynch, Jr.28-Nov-07 5:25
Ennis Ray Lynch, Jr.28-Nov-07 5:25 
AnswerRe: Web service Pin
Bazalgette28-Nov-07 14:40
Bazalgette28-Nov-07 14:40 
QuestionAn application suite Pin
Ofori Boadu28-Nov-07 4:33
Ofori Boadu28-Nov-07 4:33 
AnswerRe: An application suite Pin
Colin Angus Mackay28-Nov-07 5:05
Colin Angus Mackay28-Nov-07 5:05 
AnswerRe: An application suite Pin
duncanmhor28-Nov-07 5:55
duncanmhor28-Nov-07 5:55 
JokeRe: An application suite Pin
PIEBALDconsult28-Nov-07 15:34
mvePIEBALDconsult28-Nov-07 15:34 
Questionform problem Pin
Seraph_summer28-Nov-07 4:11
Seraph_summer28-Nov-07 4:11 
AnswerMultiple posts Pin
leckey28-Nov-07 4:32
leckey28-Nov-07 4:32 
GeneralRe: Multiple posts Pin
Anthony Mushrow28-Nov-07 4:47
professionalAnthony Mushrow28-Nov-07 4:47 
GeneralRe: Multiple posts Pin
leckey28-Nov-07 4:51
leckey28-Nov-07 4:51 
GeneralRe: Multiple posts Pin
Seraph_summer28-Nov-07 5:07
Seraph_summer28-Nov-07 5:07 
GeneralRe: Multiple posts Pin
Anthony Mushrow28-Nov-07 5:17
professionalAnthony Mushrow28-Nov-07 5:17 
GeneralRe: Multiple posts Pin
leckey28-Nov-07 14:53
leckey28-Nov-07 14:53 
Questionform problem Pin
Seraph_summer28-Nov-07 4:09
Seraph_summer28-Nov-07 4:09 
AnswerRe: form problem Pin
Paul Conrad28-Nov-07 14:36
professionalPaul Conrad28-Nov-07 14:36 
GeneralRe: form problem Pin
Seraph_summer28-Nov-07 23:43
Seraph_summer28-Nov-07 23:43 
QuestionAvoiding TimeoutException... Pin
blackjack215028-Nov-07 3:20
blackjack215028-Nov-07 3:20 

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.