Für die Arbeit mit SOAP ist es beim Lernen am Anfang oft nützlich, mit einem möglichst einfachen, robust funktionierenden SOAP Service "rumzuspielen". Dieses Beispiel zeigt einen komplett funktionierenden SOAP Service mit WSDL inkl. Client, der den Service aufruft.
Zu Testzwecken braucht man manchmal einen zuverlässigen REST-Service. Dieses Beispiel zeigt den PHP Code eines einfachen REST-Services und den HTML Code, der diesen Service aufruft.
Dieses Tutorial zeigt Schritt für Schritt, wie man mit PHP 5 RSS Newsfeeds auf einer Homepage einbinden kann. Diese Variante nutzt eine lokale Cache Datei, um die Ladezeiten beim Seitenaufruf durch Besucher nicht zu beeinträchtigen.
Das Zusammenspiel der involvierten Dateien, des Cronjobs und des entfernten RSS Feeds wird grafisch dargestellt. Neben dem einsatzfähigen Code werden Beispiele gegeben, wie man diesen auf eigene Bedürfnisse anpassen kann.
Well, since the opening of bing.com I’ve been playing with the API and some of the options it provides. Certainly I was getting annoyed since I had to rebuild each of my queries if I wanted something so I search for a library that could do this for me which I couldn’t find and I ended up writing my own.
Twitter is everywhere nowadays. Odds are eventually you will want to tweet from PHP. No need to use one of the numerous PHP Twitter libraries, as tweeting is as simple as using the PHP built-in file_get_contents() function
Clay Loveless uses PHP to access Amazon Web Services (AWS) and provides code samples for performing basic AWS actions using PHP 5.Clay Loveless uses PHP to access Amazon Web Services (AWS) and provides code samples for performing basic AWS actions using PHP 5.
Handling SOAP structures in PHP can sometimes be really annoying. If an interface is defined in the WSDL as returning an array I can’t be sure that I will get an array. If there is only one element in the array PHP tries to be clever and turn the wanted array into an object which, too me, isn’t really smart. I don’t know if this is a problem/limitation on the client side, server side or if it is just me doing something stupid in the wsdl.
I recently had reason to write a REST server in PHP, which was very interesting. There aren't a whole lot of resources on this topic around so I thought I'd write an outline of what I did. There is quite a lot to it so I'm publishing in multiple sections - this is part 1, which covers the central functionality and handling the incoming request.
SOAP and XmlRpc protocols to allow for remote procedure calls. In other words, you could for example "expose" a service using XmlRpc for customers/the public to interact with. This allows them to hook into your system, and use it as they see fit.
If you are interested in this, you might also want to look at the SCA SDO module in PECL. Although aware of it, for some unknown reason, we didn't investigate using it.
* SOAP – once stood for Simple Object Access Protocol
* XMLRPC – XML Remote Procedure Call[s]
Both are Cross platform, language agnostic means of executing remote code.
SOAP is really now just called "SOAP", I think they've dropped the "Simple..." bit from the name as it can be anything but simple.
Welcome to the fourth installment of the series “Using Yahoo! Web Services with PHP 5.” Made up of six approachable tutorials, this series provides you with the right pointers to start using these useful web services within the context of your PHP 5-driven applications. It complements the corresponding theoretical concepts with a decent variety of hands-on examples.
As you may know, the incorporation of popular web services, such as image and video searches, into existing web applications can be an efficient approach to expanding their functionality and making them more attractive to end users. Based upon this concept, Yahoo! has made a set of powerful APIs available for PHP developers, which, among other useful things, will let you couple its most relevant web services to your own PHP applications without needing to deal directly with data served in WSDL (Web Service Description Language).
However, as with everything in Life, learning how to put those Yahoo! services to work for you takes some time. If you read this series of tutorials, it will hopefully turn the overall educational process into a painless experience.
Now that you've read this brief introduction, you’ll probably recall that in my last article of this series, I finished discussing how to implement some of the most useful web services provided by Yahoo! by using only a few basic PHP functions. In this way, you learned not only how to build simple mechanisms to call up these search services directly from your PHP 5 applications, but how to format the corresponding search results via a few basic (X)HTML tags.
However, all the practical examples that I gave you previously used a rather primitive procedural approach to implement the services in question within the context of different PHP 5 scripts. Logically, these examples can be really useful for learning the basic concepts surrounding the use of these search services, but undoubtedly, it’s necessary to modify and improve their source code to make it more compact and completely reusable.
Therefore, in this fourth chapter of the series, I’m going to show you how to use all of the Yahoo! Web Services discussed earlier, but this time by defining some custom PHP functions. In this way, it will complete the implementation of those services using a procedural approach.








