May 20th, 2007, 04:35 PM
Looking for advice for good style
I am developing my first application that uses web services for a stundent's project at the moment.
Thanks to spring-ws everything works fine so far. But I am kinda unsure how to go on right now.
I am using serveral requests and responses as defined in my xsd. Rigth now I am not sure how to determine which endpoint should be used.
At first I thought creating an ENdpoint for each service might be a good idea but right now i don't know how to determine which endpoint should be used.
i could create a new endpoint, set is as defaulEndpoint in my servlet.xml, parse the request and forward it to my Endpoints. But if i have to parse it (create XPaths etc) anyway i could even use only this single Endpoint and call the business logic just there, couldn't i?
I would really appreciate any help what is good / best practise in deciding which request i acutally recieved and what to call.
thanks in advance,
May 20th, 2007, 05:10 PM
Well, it's hard to give advice when I don't know the project you're working on. But a good advice is to group "related" functionality in endpoints. As soon as you see that the endpoint is getting too big, you split it. You can compare the situation to Spring MVC: do I have all requests in one controller, or do I separate them? It all depends on what makes sense to you...