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.
In Business Service Developer Tasks,
you exposed several methods as SOAP Web
services. To use these methods from the front end, add a reference
to them in your Visual Studio project by adding a Web Reference:
In Visual Studio, right-click the project name and
select Add Web Reference.
In the URL field, enter the path
to your WSDL.
Click Go. The resulting dialog
resembles this.

Notice how all of the methods exposed earlier are displayed.
To add these methods to your project, click Add
Reference.
To use any of the methods, instantiate the Web service
by executing code similar to:
localhost.ExamplesWebService webService =
new localhost.ExamplesWebService();
Access any of the methods on the Web service as you
would any other .NET object. Here are some examples:
int intValue = webService.getInt();
string stringValue = webService.getString();
double[] doubleArray = webService.getDoubleArray();
double[][] magicSquare = webService.getDoubleMatrix(size);
char[] charArray = webService.getCharArray();
byte[] bytesArray = webService.getByteArray();
byte[] imageByteArray = webService.getImageBytesArray();
byte[] imageByteArrayWithOrientation =
webService.getImageByteArrayWithOrientation( 500,
500, 20, 30, "png");