Flex 4 front end connecting to Java Jersey Web Service

Posted by user305801 on Stack Overflow See other posts from Stack Overflow or by user305801
Published on 2010-05-25T02:09:02Z Indexed on 2010/05/25 2:11 UTC
Read the original article Hit count: 270

Filed under:
|
|
|

I created a Java REST service using Jersey. I use three of the HTTP "verbs" GET, POST and DELETE. I want to create several prototype front ends for the service. After much research, a lot dating to 2008 and 2009, I have been unable to find anything remotely simple.

My three options are:

1) resthttpservice. This project hasn't been updated in a year. The only activity are one off suggestions that individual users have implemented.

http://code.google.com/p/resthttpservice/

2) Create an AIR application. This isn't unfeasible.

3) Writing my own socket level code but there is a security restriction with flash players and I need to implement a policy server.

I have already read the question posted about asking whether using Flex for REST services were worth it. That information is old as well. I want to introduce REST services to my company but Flex's limited support for HTTP PUT and DELETE are discouraging. My service also uses the Accept header to determine if JSON or XML will be returned to the client. I can't seem to change HTTP headers without doing socket programming. I'm fine with that but the security policy thing is annoying.

Is there an easy way to use Flex 4 with RESTful services that uses PUT/DELETE and the Accept HTTP header?

Please help. I'm very frustrated.

© Stack Overflow or respective owner

Related posts about flex

Related posts about rest