I added into the Flex Viewer the ability to add a custom proxy per Live layer. The idea behind this, is to use secure services, generating the token and integrate the Flex Viewer into the security of the Web application that contains the Flex viewer.
I have modified successfully all the different tasks (like Identify) to work with the specific proxy in the configuration. The layer configuration looks like:
Everything is working fine except for the query builder(ESA additions).
I need to modify the QueryBuilder such as when the user click in the layer to work with, the QBFactory creates a new instance of IQueryBuilder with the proxy of the layer. The newInstance method does not look like having a way to tell it what proxy to use. And it is failing when trying to construct the layers.
Manuel, Do you figure out this? I try to secure the map services and only QueryBuilderWidget is not working. Please let me know how do you solve the problem.