J
Jens Jensen
Hello all,
I need some design advice for my web service.
I' have written a web service that exposes a function that takes some
parameters
and return an xml.
The function have up to 10 parameters. There are many situations where the
function returns an error xml.
The parameters need to be checked in many differents ways (10 power X ways).
So an error xml is just returned to the caller.
I'm looking for a pattern to best implement this. So far, i have written a
working code but , i'm not really proud of writing this code.
I beleive /i'm convinced it can be done much better. The code does works as
it should. The only problem is the design.
I'm looking at some pattern (maybe GOF) or other patterns that can be used.
Any idea?
Thanks
JJ
I need some design advice for my web service.
I' have written a web service that exposes a function that takes some
parameters
and return an xml.
The function have up to 10 parameters. There are many situations where the
function returns an error xml.
The parameters need to be checked in many differents ways (10 power X ways).
So an error xml is just returned to the caller.
I'm looking for a pattern to best implement this. So far, i have written a
working code but , i'm not really proud of writing this code.
I beleive /i'm convinced it can be done much better. The code does works as
it should. The only problem is the design.
I'm looking at some pattern (maybe GOF) or other patterns that can be used.
Any idea?
Thanks
JJ