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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 184
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 146
Migrating secure data services 147
Migrating services that use Basic authentication
For Basic authentication, you must change the value of the security constraint’s url-pattern
in the web.xml file. This section assumes that you have already migrated the service’s
destination, as described in previous sections.
Flex 1.5 syntax
In Flex 1.5, for WebService and HTTPService, you specified the /flashproxy/service_name as
the
url-pattern, as the following example shows:
<web-app>
...
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Page</web-resource-name>
<url-pattern>/flashproxy/MyService</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>manager</role-name>
</security-role>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
For RemoteObject, you specified /amfgateway/service_name as the url-pattern.
Vista de página 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 183 184

Comentários a estes Manuais

Sem comentários