• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Validating input data passed to web service

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can validate your XML in "one shot" using XML Schema (XSD File)
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic