Jun 14th, 2010, 12:14 PM
I'm trying to figure out the 'Spring-WS way' to solve my problem. Here's the problem: Inbound web service requests will be sent to the same endpoint and will contain a control code that will dictate the appropriate action to take. So for a straight forward example, a PersonEndpoint will receive requests with a control code of gender - Male or Female. If Male, forward the request to the MaleEndpoint; If Female, forward to the FemaleEndpoint.
Since hundred's of control codes will be used, writing switch:case statements or if, else if, else logic doesn't seem to be the best approach. Any help/suggestions are appreciated.