I hope you get more responses than just mine. Just as a note, services as denoted in Best Practices Guide, mean those defined in the servicedef and Scripts folders. like the services_shipment_dhl.xml the routine you show is not a service but a routine in the service java class. you have two types of Service code. Java and mini-language. I believe, that the statement about validation was more directed to the mini-laguage type of service.
acec acec sent the following on 4/17/2008 11:29 AM: > Hi, > After I read "Best Practices Guide", I still have a > question: "where is the best place of validation?" > > I found "Another good example is doing special > pre-processing and validation on parameters before > passing them to a service for processing" in that > guide, so the validation should not be a part of > service, then I try to find an example, which has > validation logic. > But I found all validations were done in service, such > as: > DhlServices.java, > public static String sendDhlRequest(String xmlString) > { > ... > if (xmlString == null) { > throw new DhlConnectException("XML message > cannot be null"); > } > ... > } > > Thanks a lot. > tomcat acec > > > __________________________________________________________________ > Ask a question on any topic and get answers from real people. Go to Yahoo! > Answers and share what you know at http://ca.answers.yahoo.com > > >