• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SOAP vs REST : xml inputs validation

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

We have a REST application that produces or consumes xml
On that application, we added an xsd so that we can validate the inputs sent.

My new colleagues say that if we wanted such validation we should have used SOAP instead of REST, that we are mixing SOAP and REST,...

I disagree with the same and I would like to have your thought about that

Thanks,

 
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

A. Aka wrote:if we wanted such validation we should have used SOAP instead of REST


Nonsense. You can validate your input just as well with either.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Recall that a RESTful service can serve any type of resource, not just XML. Therefor validation will depend on the type of resource.

A RESTful service will always be faster than SOAP because you do not have to parse the XML SOAP request message or build an XML response.

Bill
 
A. Aka
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
creating REST resources that consume or produce XML, this do not undermine the advantage of being fast ?
Question1 : compared to SOAP ?
Question2 : compared to JSON with REST?
 
Tim Cooke
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Undermine what advantage?
 
A. Aka
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the advantage of rest being faster than SOAP
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
REST just has to do with moving resources around according to the HTTP methods and resource locating logic.

A GET operation to a REST style server just retrieves the resource - the nature of the resource makes no difference. As far as a REST server is concerned, XML and JSON are just text streams.

Bill
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic