Results 1 to 2 of 2

Thread: Looking for advice for good style

  1. #1
    Join Date
    Feb 2007
    Location
    germany
    Posts
    40

    Default Looking for advice for good style

    Hello,

    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,
    bjoern

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    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...
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •