-
1. Re: Seam web services (RESTful ones)?
robjellinghaus Jul 14, 2006 12:58 AM (in response to robjellinghaus)Hm, my bad, this has been discussed already:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=83603
So either wait for JAX-WS (which is not what I want for something cheap and RESTy like the Flickr API), or just roll my own servlet with filter around Seam. I'll probably go down the latter route once I get there.
Cheers!
Rob -
2. Re: Seam web services (RESTful ones)?
gavin.king Jul 14, 2006 12:59 AM (in response to robjellinghaus)I have been doing a LOT of thinking about restful webservices with Seam, and I'm actually pretty happy with facelets as a way to produce XML (I already implemented an RSS feed in the blog example). JSF as the request processing layer is also OK, I guess, but it feels kinda wierd to use JSF this way (you aren't using any of the JSF lifecycle).
-
3. Re: Seam web services (RESTful ones)?
gavin.king Jul 14, 2006 1:00 AM (in response to robjellinghaus)Note that Seam-WS and Seam-REST are two entirely seperate things....
-
4. Re: Seam web services (RESTful ones)?
robjellinghaus Jul 14, 2006 1:11 AM (in response to robjellinghaus)"gavin.king@jboss.com" wrote:
I'm actually pretty happy with facelets as a way to produce XML (I already implemented an RSS feed in the blog example).
Ah cool, I missed that. Will check it out. Not sure how it works to do POSTs with XML in them to a JSF app, but that's probably just my inner newbie talking... doesn't seem like it should be a problem.JSF as the request processing layer is also OK, I guess, but it feels kinda wierd to use JSF this way (you aren't using any of the JSF lifecycle).
That seems like a feature, not a bug :-) If you don't care about big chunks of the lifecycle, stub it right out! -
5. Re: Seam web services (RESTful ones)?
gavin.king Jul 14, 2006 12:17 PM (in response to robjellinghaus)Ah cool, I missed that. Will check it out. Not sure how it works to do POSTs with XML in them to a JSF app, but that's probably just my inner newbie talking... doesn't seem like it should be a problem.
This is the thing that I have spent the most time thinking through. The biggest problem with building RESTful webservices is parsing incoming XML, and I think that calls for a whole new API for XML parsing.
Though I note that Flikr just seems to use plain old request parameters in its API, no XML....That seems like a feature, not a bug :-) If you don't care about big chunks of the lifecycle, stub it right out!
Wellyes, it is automatically stubbed out by JSF (non-faces request). -
6. Re: Seam web services (RESTful ones)?
basel Jul 23, 2006 7:01 AM (in response to robjellinghaus)"gavin.king@jboss.com" wrote:
(I already implemented an RSS feed in the blog example)
Does SeamListener handle the request to index.rss and parse the EL elements? -
7. Re: Seam web services (RESTful ones)?
gavin.king Jul 23, 2006 7:50 PM (in response to robjellinghaus)I don't understand what you are asking. The code is in CVS if you want to take a look.
-
8. Re: Seam web services (RESTful ones)?
basel Jul 24, 2006 2:14 AM (in response to robjellinghaus)Sorry for not being clear.
After taking a closer look at web.xml I noticed that the FacesServlet handles all the requests to /seam/. So this applies to index.rss as well, please correct me if I am wrong.
I got confused becuase in my current setup I have *.jsf mapped to the FacesServlet. So I started to wonder about how Seam handles request to index.rss.