Hi, It seems that you may be attempting to learn and solve a lot of issues at the same time. Considering your recent post in the REST-Discuss list, it seems that you are just try to port a SOAP application to REST to workaround a technical limitation while such a change is very structuring (architecture level).
2) Restlet has its own URI mapping/routing mechanism, so Spring doesn't need to know about it. If you are just GETing an XML document, maybe using Restlet is not worth it in your case (existing Spring/Servlet/SOAP application). Finally, as you are under deadline pressure, you may want to consider getting some professional support: http://www.noelios.com/services/ Best regards, Jerome > -----Message d'origine----- > De : kcr sk [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 27 avril 2007 22:17 > À : [email protected] > Objet : Spring-Restlet Embedded mode B issue. > > Hi Jerome/Jima > > This email is in reference to a posting between you > both-http://restlet.tigris.org/servlets/ReadMsg?list=discuss&m > sgNo=1790 > > I have 4 questions: > > 1) I followed the exact code mentioned in the attached files > of the above thread but I did not get to test with the > following url sucessfully: > > http://localhost:7000/<context-root>/<servlet-name>/restlet/myresource > Instead I get the following error: > Error 404--Not Found. From RFC 2068 Hypertext Transfer > Protocol -- HTTP/1.1: > 10.4.5 404 Not Found > The server has not found anything matching the Request-URI. > No indication is given of whether the condition is temporary > or permanent. > > If this is a deployment issue as Jima mentioned, please let > me know as how you resolved it. > > 2) I modified the TestServlet.java to extend from spring's > FrameworkServlet and overidden its intFrameworkServlet() to > create the ServletConvertor. In this case, the application > deployment in the application server expects the spring's web > application context file but I am not sure > org.springframework.web.servlet.handler.SimpleUrlHandlerMappin > g must refer to? In other words, must it refer to the > subclass of Resource (MyResource) or ? > > Below is the current content of the spring's webapplication > context file: > > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:util="http://www.springframework.org/schema/util" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://www.springframework.org/schema/util > http://www.springframework.org/schema/util/spring-util-2.0.xsd"> > > <bean > class="org.springframework.web.servlet.handler.SimpleUrlHandle > rMapping"> > <property name="urlMap"> > <map> > <entry key="/servletXXX-restlet"> > <ref bean= <do not know what goes in here????> /> > </entry> > </map> > </property> > </bean> > </beans> > > > Your help is highly appreciated as I am under the deadline > gun and all these technologies(Spring, restlet, servlet ) are > new to me. > > 3) Since I am new to all this, I guess I really do not > understand the benefits of Embedded mode B - Is it not an > overhead to use ServletConvertor in a Spring Servlet in order > to create extra restlet related objects like router, > resource. How is this different from not having a restlet. > > 4) In embedded mode B, how do the calling client evoke a > business method in a url; Will the url be > http://localhost:7000/<context-root>/<servlet-name>/restlet/my resource/businessMethod?methodParameter1=17, methodParameter1=<xml...> > > Thanks a ton in advance. > > > > ________________________________ > > Ahhh...imagining that irresistible "new car" smell? > Check out new cars at Yahoo! Autos. > <http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_ > cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGF > ncwRzbGsDbmV3LWNhcnM-> >

