MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual do Utilizador Página 144

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 184
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 143
1 2 ... 139 140 141 142 143 144 145 146 147 148 149 ... 183 184

Comentários a estes Manuais

Sem comentários