• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validating input data passed to web service

 
tushar joshi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

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.

Thanks in advance

Bye
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can validate your XML in "one shot" using XML Schema (XSD File)
 
Karthik Mohan
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you use an api like XMLBeans, you can validate the data very easily.
 
tushar joshi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Please give me urgent reply as per requirements.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic