MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manuel d'utilisateur Page 146

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 184
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 145
1 2 ... 141 142 143 144 145 146 147 148 149 150 151 ... 183 184

Commentaires sur ces manuels

Pas de commentaire