User Guide
162 Server-Side ActionScript Language Reference
Parameters
expression Any valid ActionScript expression.
Returns
Nothing.
Description
Method (global); evaluates an expression and displays the value. The expression appears in the
Console window when the server is running in console mode; the expression is also published
to the logs/application appname stream, which is available in the management console or in
the Application inspector.
The values in the trace expression are converted to strings if possible before they are output.
You can use the
trace() function to debug a script, record programming notes, or to display
messages while testing a file. The
trace() function is similar to the alert function in
JavaScript.
WebService class
Availability
Flash Media Server 2.
Description
You can use the WebService class to create and access a WSDL/SOAP web service. There are
several classes that comprise the Flash Media Server web services feature: WebService class,
SOAPFault class, SOAPCall class, and Log class.
The following steps outline the process of creating and accessing a web service.
To create and access a web service:
1. Prepare the WSDL location:
var wsdlURI = "http://www.flash-db.com/services/ws/companyInfo.wsdl";
2.
Instantiate the web service object using the WSDL location:
stockService = new WebService(wsdlURI);
NOTE
The WebService class is not able to retrieve complex data or an array returned by a web
service. Also, the WebService class does not support security features.