what is Websevice and usage in php

Discussion in 'PHP' started by aniltc, May 21, 2010.

  1. #1
    hi all

    what is a web service ? I have heard about REST and SOAP.What is the real use of this in web application.What kind of purpose we use web service in php.What is the advantage ? Can any one give me a real time application example about these topics


    How can I add web service to a web page using php ?
    Thanks
     
    aniltc, May 21, 2010 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    Real usage = Paypal IPN or any Paypal checkout system, or any payment system in general.

    Web services allow you to integrate with other services like payment systems, shipping, CRMs, and just about anything you can think of. Most API's will have a manual on how to integrate with them, and since every one is different, there's not a specific manual on how to use them. If you are connecting to a REST API, you will normally use curl, and POST or GET functions. SOAP API's interface much like the way objects work with PHP. SOAP is significantly more complex to integrate with and really to understand than a REST api.
     
    jestep, May 21, 2010 IP
  3. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #3
    the word is integrate, means you interact your website with them (other websites that has api)
    one example is twitter, by using their/your classes you can do whatever you want for your website/software just as twitter does :D
     
    gapz101, May 21, 2010 IP