![]() |
Using SOAP with PHP Soap Server | Soap Client
|
Sample Web Service that will return a stock price given a particular stock symbol. Building a Web Service allows other applications easy access to the same data in the future. It also separates the data extraction from the data source from the application itself. Say you were storing the data in a MySQL database but later decided to move it to a SQLite database... in this scenario your application wouldn't know the difference. Its calls to the Web Service remain unchanged. MySql table schema and some sample data to work with CREATE TABLE `stockprices` (
|
SERVER
|
At this point I have a fully functioning SOAP Server. Clients can connect to it and request data. Click here to bring up the script in your browser and see what you get. You should get a page giving you a link to the WSDL document for the Server. Click on it and you should see the resulting WSDL document... in XML! If you read over this document, you will see that it describes what happens for a request and as a response for your particular SOAP Service. |
CLIENT: Click here to connect and request sample stock data
|