MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guía de usuario Pagina 27

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 256
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 26
Flex deployment models 27
Data access with HTTPService and WebService
The Flex HTTPService and WebService tags let you retrieve data from a remote server. These
tags, which are also called remote procedure call (RPC) components, let your application
interact with remote servers to provide data to your applications, or for your application to
send data to a server. Using Flex 2 SDK, you can build applications that access remote data
from a web application server, such as ColdFusion or PHP, through SOAP (web services), or
HTTP GET or POST requests (HTTP services). The web application retrieves the
appropriate data (typically from a database, for example), formats it (typically as XML), and
returns it to the client application.
For security, by default Flash Player does not allow an application to access a remote data
source from a domain other than the domain from which the application was served.
Therefore, a remote server must either be in the same domain as the server hosting your
application, or the remote server must define a crossdomain.xml file.
A crossdomain.xml file is an XML file that provides a way for a server to indicate that its data
and documents are available to SWF files served from certain domains, or from all domains.
The crossdomain.xml file must be in the web root of the server that the Flex application is
contacting.
The following example shows an application that uses Flex SDK to access data from a server
by using RPC services (the originating web server is omitted for clarity):
crossdomain.xml file
EJBs Web services JavaBeans
Flash Player running
Flex applications
HTTP/SOAP
Web application such as ColdFusion or PHP
Client and presentation tiers
running on the client
Business and integration tiers
running on the server
Resource tier
Vista de pagina 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 255 256

Comentarios a estos manuales

Sin comentarios