Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Web Services

  1. #1
    Regular Coder byuhobbes85's Avatar
    Join Date
    Oct 2006
    Location
    Ames, Iowa, USA
    Posts
    116
    Thanks
    9
    Thanked 4 Times in 4 Posts

    Web Services

    I'm not sure if this is the right place to post a question regarding web services...forgive me if not.

    I've been in web development for a while now and have heard a lot of discussion about web services. I understand that a web service is pretty much a web-based API--the client submits a request, and the server submits a response. Great. I've been doing that for years now. If I have a database with data, I create a PHP script that will serve as an interface to that data. I submit a request to the PHP script, and it returns my data in an XML format that I can then parse, display, or whatever.

    What I would like to know is what makes a web service different from that PHP script that serves as an interface to my database. Is it a simple web service? If not, why not? How do WSDL and SOAP fit in to all this?

    Thanks!
    -- </byuhobbes>

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by byuhobbes85 View Post
    I'm not sure if this is the right place to post a question regarding web services...forgive me if not.

    I've been in web development for a while now and have heard a lot of discussion about web services. I understand that a web service is pretty much a web-based API--the client submits a request, and the server submits a response. Great. I've been doing that for years now. If I have a database with data, I create a PHP script that will serve as an interface to that data. I submit a request to the PHP script, and it returns my data in an XML format that I can then parse, display, or whatever.

    What I would like to know is what makes a web service different from that PHP script that serves as an interface to my database. Is it a simple web service? If not, why not? How do WSDL and SOAP fit in to all this?

    Thanks!
    I'm not sure if this will answer to your question:

    http://webservices.xml.com/pub/a/ws/...ces/index.html

    wdsl is the language used to describe what your service offer, what client are looking for and so on.
    soap is the communication protocol between client and server, to find what your service offer, what you need and so on.
    I hope I didn't mess it, I try to explain it simple, but are more w3c recommandation involved here,
    usualy a google search for "term site:w3.org" adding "primer" give some usefull links, same for xml.com

    implementing this in php, perl, erlang or what ever you want is a matter of choice,

    best regards


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •