PHP clients: what web-service is best? (SOAP etc)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Doe.

    #1

    PHP clients: what web-service is best? (SOAP etc)

    Hi PHP gurus!

    Our team will be creating a web-application that must have an easy to use
    programmatic interface for our web-developer clients. The data transferred
    will primarily be taken from a database (which may be remote) like a true
    3-tier app. Load tolerance for us is quite important.

    We are considering creating a SOAP service. We have found that the php_soap
    extension is easy to use for our clients and seems to do everything we need
    (from a client perspective). We have however, heard others mention XML RPC
    as a better alternative (especially relative to bandwidth) and just as easy
    to consume by PHP.

    My main questions for you PHP gurus are:

    1) What is the approximate likelihood that clients who have sites that
    support PHP will have the soap extension installed (or are willing to
    install it). Good? Fair? Bad?

    2) Is there a better technology choice for our software development team to
    provide a web-service to our web-developer clients? XML RPC, custom CGI
    protocol? others?

    TIA
    J.



  • Manuel Lemos

    #2
    Re: PHP clients: what web-service is best? (SOAP etc)

    Hello,

    on 12/30/2004 01:17 AM John Doe. said the following:[color=blue]
    > Our team will be creating a web-application that must have an easy to use
    > programmatic interface for our web-developer clients. The data transferred
    > will primarily be taken from a database (which may be remote) like a true
    > 3-tier app. Load tolerance for us is quite important.
    >
    > We are considering creating a SOAP service. We have found that the php_soap
    > extension is easy to use for our clients and seems to do everything we need
    > (from a client perspective). We have however, heard others mention XML RPC
    > as a better alternative (especially relative to bandwidth) and just as easy
    > to consume by PHP.
    >
    > My main questions for you PHP gurus are:
    >
    > 1) What is the approximate likelihood that clients who have sites that
    > support PHP will have the soap extension installed (or are willing to
    > install it). Good? Fair? Bad?[/color]

    Bad. It is PHP 5 only extension. Until PHP 5 gets really popular things
    won't improve. Try it in 6 months or more.

    [color=blue]
    > 2) Is there a better technology choice for our software development team to
    > provide a web-service to our web-developer clients? XML RPC, custom CGI
    > protocol? others?[/color]

    I am not that sure that XML-RPC is a better RPC protocol. Keep in mind
    that some people just want to force that claim due to the anti-Microsoft
    bias. SOAP was specified by Microsoft and other big companies, so now
    you may understand that at least in part some people just tell you to
    not use SOAP because they think it is a Microsoft thing, which is a kind
    of stupid logic as it is not good to have too many protocols to use for
    the same thing.

    Anyway, if you do not plan to wrap large data in RPC requests, you may
    just to stick to plain and simple REST. It is as simple as passing the
    request arguments in the URL separated by ? and & just like when you use
    forms.

    Amazon also jumped into the Web services era with SOAP, but soon the
    realized that it would be much simpler if they would also provide a REST
    interface. It does not require large marshalling and unmarshalling
    libraries and you can still reuse your normal PHP scripts to provide a
    REST interface.

    --

    Regards,
    Manuel Lemos

    PHP Classes - Free ready to use OOP components written in PHP
    http://www.phpclasses.org/

    PHP Reviews - Reviews of PHP books and other products
    http://www.phpclasses.org/reviews/

    Metastorage - Data object relational mapping layer generator

    Comment

    • Matthias Esken

      #3
      Re: PHP clients: what web-service is best? (SOAP etc)

      Manuel Lemos wrote:
      [color=blue]
      > Until PHP 5 gets really popular things
      > won't improve. Try it in 6 months or more.[/color]

      How can PHP 5 improve if everyone waits 6 months?

      Regards,
      Matthias

      Comment

      • Manuel Lemos

        #4
        Re: PHP clients: what web-service is best? (SOAP etc)

        Hello,

        on 12/30/2004 04:06 PM Matthias Esken said the following:[color=blue]
        > Manuel Lemos wrote:
        >[color=green]
        >>Until PHP 5 gets really popular things
        >>won't improve. Try it in 6 months or more.[/color]
        >
        > How can PHP 5 improve if everyone waits 6 months?[/color]

        You have waited 3 years for PHP 5 and that did not stop its developers
        to work on it.

        Once it was released it has been getting much more testing by early
        adopters that are either naive or do not have much to loose by the
        things that were broken.

        Now, if you have sites running perfectly with PHP 4, you may break your
        face if you try to upgrade now. It has always been like that on every
        new PHP release.

        --

        Regards,
        Manuel Lemos

        PHP Classes - Free ready to use OOP components written in PHP
        http://www.phpclasses.org/

        PHP Reviews - Reviews of PHP books and other products
        http://www.phpclasses.org/reviews/

        Metastorage - Data object relational mapping layer generator

        Comment

        • Matthew Crouch

          #5
          Re: PHP clients: what web-service is best? (SOAP etc)

          On Thu, 30 Dec 2004 19:06:02 +0100, Matthias Esken wrote:
          [color=blue]
          > Path:
          > nwrddc03.gnilin k.net!cyclone2. gnilink.net!cyc lone1.gnilink.n et!gnilink.net!
          > in.100proofnews .com!in.100proo fnews.com!fu-berlin.de!uni-berlin.de!indiv idu
          > al.net!not-for-mail
          > From: Matthias Esken <muelleimer2004 nospam@usenetve rwaltung.org>
          > Newsgroups: comp.lang.php
          > Subject: Re: PHP clients: what web-service is best? (SOAP etc)
          > Date: Thu, 30 Dec 2004 19:06:02 +0100
          > Organization: Usenetverwaltun g
          > Lines: 9
          > Message-ID: <cr1jir.9c.1@us enet.esken.de>
          > References: <ArKAd.604498$P l.132451@pd7tw1 no>
          > <33hbbdF403iutU 1@individual.ne t>
          > Reply-To: Matthias Esken <netzkontroll e-nospam@usenetve rwaltung.org>
          > X-Trace: individual.net RdywKGvP5CgQ6+T OfolZwQZWiQHPIC tOClaIyoDk3f+wS 3fdU=
          > X-Newsreader: Forte Agent 1.93/32.576 Deutsch (Standard)
          > User-Agent: Hamster/2.0.2.1
          > Xref: cyclone1.gnilin k.net comp.lang.php:7 4511
          > X-Received-Date: Thu, 30 Dec 2004 13:07:55 EST (nwrddc03.gnili nk.net)
          > MIME-Version: 1.0
          > Content-Type: text/plain; charset=us-ascii
          > Content-Transfer-Encoding: 7bit
          >
          >
          > Manuel Lemos wrote:
          >[color=green]
          >> Until PHP 5 gets really popular things
          >> won't improve. Try it in 6 months or more.[/color]
          >
          > How can PHP 5 improve if everyone waits 6 months?
          >
          > Regards,
          > Matthias[/color]

          a local hosting co. called serveryard.com told me they were using P5 just
          a few weeks after it was released.

          What is needed, I think, is just demand. Shop around for hosts and tell
          them you want/need P5 support. The more calls like this the sooner it'll
          happen.

          Comment

          Working...