If your installation has a strong investment in PHP front ends,
consider using them to display Web Services running MATLAB applications.
As long as your business tier services output data in a generic
nonlanguage-specific manner (as most of the examples in this document
support), you can embed that output within any Web front end. This
example demonstrates how to use SOAP
Web services to embed an image onto a PHP page:
//References a soap library and loads the WSDL.
include("lib/nusoap.php");
$soapclient = new soapclient
('http://localhost:3465/
SurfPeaksWebServiceServer/Service.asmx?WSDL',
true);
//If we had any parameters to pass
// we would add them to this array.
$params = array();
//Calls the service with the parameters.
$result = $soapclient -> call("SurfPeaksWebService", $params);
//Gets the encoded responce out of the result object.
$base64EncodedResult = $result["SurfPeaksWebServiceResult"];
//Decodes and displays the result.
echo base64_decode($base64EncodedResult);
//Unloads the soap client.
unset($soapclient);
You can use this technique to access data services, as well:
Install PHP 5.2.3 into IIS 5, if needed (the installer
lets you specify the server type).
Download NUSOAP and place it on the instance path.
You should be able to use any SOAP add-in. However,
note that the call syntax may change slightly. Consult the add-in
documentation for further information.