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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 184
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 145
146 Data Services
Flex 1.5 syntax
In Flex 1.5, you specified run-as credentials as user and password attributes to pass through
credentials to a service.
flex-config.xml file:
<web-service-proxy>
<whitelist>
<named>
<service name="MyService">
<wsdl>http://somewhere.com/webservice.wsdl</wsdl>
<endpoint>http://somewhere.com/myservice</endpoint>
<run-as user="user1" password="opensaysme"/>
</service>
</named>
</whitelist>
</web-service-proxy>
Flex 2 syntax
In Flex 2, you set the remote-username and remote-password elements in the destination
definition.
services-config.xml file:
<destination id="samplesProxy">
<properties>
<url>
http://someserver/SecureService.jsp
</url>
<remote-username>johndoe</remote-username>
<remote-password>opensaysme</remote-password>
</properties>
</destination>
Alternatively, you can pass remote credentials from an RPC component in the components
setRemoteCredentials(remoteUsername, remotePassword) method from the client at
run time.
Vista de página 145
1 2 ... 141 142 143 144 145 146 147 148 149 150 151 ... 183 184

Comentários a estes Manuais

Sem comentários