Parameters
Any valid ActionScript expression.
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()
messages while testing a file. The
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:
SOAPFault
class,
SOAPCall
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.
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);
162
Server-Side ActionScript Language Reference
function to debug a script, record programming notes, or to display
function is similar to the alert function in
trace()
class, and
Log
class.
WebService
class,
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?