This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
i have one urgent problem is that validating input data on web service side for e.g compulsory fields,field length,field value etc.
Our application have one service which insert data into database by taking input from soap client. As soap client may be another application in any language. so no gui is available to validate input data.
We need to validate like compulsory fields,field length etc.
Tell me how i can do this easily rather than checking field by field validation.
You can validate your XML in "one shot" using XML Schema (XSD File)
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
if you use an api like XMLBeans, you can validate the data very easily.
Joined: Feb 08, 2005
Thanks a lot Jean-Louis Marechaux,Karthik
sorry but i am newbie in web services.so i don't have any idea on XSD Scema and XML Beans.can u please explain me more and give some useful links.
I tell u my current situation so that u will get better idea.
I have my one data object which contain name,address etc which is passed on SOAP. now after receiving data object on web service side, i have to check whether Name is entered or not as Name is compulsory. As well as length of both should be as per specified in database
So how to validate such things. Thanks a lot for ur immediate help.