Gist 3956348
✓ Published0🌍 Public
Aallyraza
Last edited Oct 26, 2012
Created on Oct 26, 2012
This example demonstrates a simple SOAP web service built with the Yii PHP framework that returns stock prices for given symbols. A client script uses PHP’s built-in `SoapClient` to call the `getPrice` method on the service, requesting the price for “GOOGLE”. The server-side `StockController` defines the web service action and returns a hard-coded price array (e.g., IBM=100, GOOGLE=350). An `.htaccess` file with URL rewriting rules forwards all non-file requests to `index.php`, enabling clean routing for the service endpoint.
AI-generated description