MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual de usuario Pagina 144

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 184
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 143
144 Data Services
MXML tag:
<mx:WebService id="MyService" wsdl="http://myServer.com/services/my.wsdl"
useProxy="true"/>
services-config.xml file:
<destination id="defaultHTTP">
<properties>
<wsdl>{context.root}/services/ContactManagerWS?wsdl</wsdl>
<soap>{context.root}/services/ContactManagerWS</soap>
</properties>
<adapter ref="soap-proxy"/>
</destination>
Named WebService
This section describes how to migration your named WebService tags from Flex 1.5 to Flex 2.
Flex 1.5 syntax
In Flex 1.5, you referred to a named WebService with the serviceName attribute of the
<mx:WebService> tag. In the configuration file, you defined a services WSDL and endpoint
as entries in the whitelist.
MXML tag:
<mx:WebService id="employeeWS" serviceName="SalaryWS">
<mx:operation name="getList"/>
</mx:WebService>
flex-config.xml file:
<web-service-proxy>
<whitelist>
<named>
<service name="SalaryWS">
<wsdl>{context.root}/services/SalaryWS.wsdl</wsdl>
<endpoints>
<endpoint>{context.root}/services/SalaryWS</endpoint>
</endpoints>
</service>
</whitelist>
</web-service-proxy>
Vista de pagina 143
1 2 ... 139 140 141 142 143 144 145 146 147 148 149 ... 183 184

Comentarios a estos manuales

Sin comentarios