开发者

Flex 4 front end connecting to Java Jersey Web Service

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 ar开发者_开发百科e:

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.


I would suggest using BlazeDS as a proxy. Also read this discussion from stackoverflow.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜