Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

SOAP concept a bit confusing

 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i read soap is basically XML encapsulated in HTTP. But it states at http://www.ibm.com/developerworks/webservices/tutorials/ws-eclipse-javase1/section9.html

web services use XML to code and decode data and SOAP to transport it using open protocols.
SOAP allows applications to communicate with each other regardless of which operating system they're running on and what programming language they were written in.


So i am a bit confused?
Q.What is open protocols ?
1)What is SOAP ? is it a XML enveloper transfer over HTTP protocol ??
2)Do web services communicate only through Http ??
 
Saloon Keeper
Posts: 6597
161
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Open protocols are protocols that have open specifications that can be implemented by anyone; HTTP is one such protocol. (If what you quote is taken directly from that article, then that article is not correct; SOAP is not the only way to create web services.)

SOAP is an XML dialect used for implementing web services. It *can* be transported over HTTP, but there are other mechanisms as well, although they are much less commonly used than HTTP. For more information see SOAP.

Note that SOAP is just one way to implement web services, and no longer the most popular one - RESTful web services have become very popular in the last few years.

*Web* services generally use HTTP, that makes them *web* services. It's possible to write services using other transport protocols, though: raw TCP, SMTP, messaging, ...
 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the great answer. Correct me if i am wrong web services communicate though http. if they did through any other protocol they wouldnt b caled webservices rite ??
 
Tim Moores
Saloon Keeper
Posts: 6597
161
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that's how the term is commonly used.
 
Beware the other head of science - it bites! Nibble on this message:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic