Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual page 146

Migrating applications to flex 2
Table of Contents

Advertisement

Flex 1.5 syntax
In Flex 1.5, you specified run-as credentials as
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
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 component's
setRemoteCredentials(remoteUsername, remotePassword)
run time.
146
Data Services
and remote-password elements in the destination
remote-username
and
attributes to pass through
user
password
method from the client at

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents