By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,961 Members | 1,333 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,961 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.

Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hello,

on 12/30/2004 01:17 AM John Doe. said the following:
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?
Bad. It is PHP 5 only extension. Until PHP 5 gets really popular things
won't improve. Try it in 6 months or more.

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?


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
http://www.meta-language.net/metastorage.html
Jul 17 '05 #2

P: n/a
Manuel Lemos wrote:
Until PHP 5 gets really popular things
won't improve. Try it in 6 months or more.


How can PHP 5 improve if everyone waits 6 months?

Regards,
Matthias
Jul 17 '05 #3

P: n/a
Hello,

on 12/30/2004 04:06 PM Matthias Esken said the following:
Manuel Lemos wrote:
Until PHP 5 gets really popular things
won't improve. Try it in 6 months or more.


How can PHP 5 improve if everyone waits 6 months?


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
http://www.meta-language.net/metastorage.html
Jul 17 '05 #4

P: n/a
On Thu, 30 Dec 2004 19:06:02 +0100, Matthias Esken wrote:
Path:
nwrddc03.gnilink.net!cyclone2.gnilink.net!cyclone1 .gnilink.net!gnilink.net!
in.100proofnews.com!in.100proofnews.com!fu-berlin.de!uni-berlin.de!individu
al.net!not-for-mail
From: Matthias Esken <mu******************@usenetverwaltung.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: Usenetverwaltung
Lines: 9
Message-ID: <cr*********@usenet.esken.de>
References: <ArKAd.604498$Pl.132451@pd7tw1no>
<33*************@individual.net>
Reply-To: Matthias Esken <ne******************@usenetverwaltung.org>
X-Trace: individual.net RdywKGvP5CgQ6+TOfolZwQZWiQHPICtOClaIyoDk3f+wS3fdU=
X-Newsreader: Forte Agent 1.93/32.576 Deutsch (Standard)
User-Agent: Hamster/2.0.2.1
Xref: cyclone1.gnilink.net comp.lang.php:74511
X-Received-Date: Thu, 30 Dec 2004 13:07:55 EST (nwrddc03.gnilink.net)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Manuel Lemos wrote:
Until PHP 5 gets really popular things
won't improve. Try it in 6 months or more.


How can PHP 5 improve if everyone waits 6 months?

Regards,
Matthias


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.
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.