Is it feasible to create a REST client with Flex?

前端 未结 15 2059
无人共我
无人共我 2020-11-29 23:05

I\'m starting a project using a Restful architecture implemented in Java (using the new JAX-RS standard)

We are planning to develop the GUI with a Flex application.

15条回答
  •  被撕碎了的回忆
    2020-11-29 23:45

    I'm working right now on an application that relies heavily on REST calls between Flex and JavaScript and Java Servlets. We get around the response error code problem by establishing a convention of a block that gets returned upon error, with error IDs that roughly map to HTTP error codes.

    We get around the cross-site scripting limitations by using a Java Servlet as an HTTP proxy. Calls to the proxy (which runs on the same server that serves the rest of the content, including the Flex content, sends the request to the other server, then sends the response back to the original caller.

提交回复
热议问题