Hi Some information is here
http://cwiki.apache.org/CXF20DOC/jax-rs.html#JAX-RS-Multipleendpointsand resourceclasses (See section "How the request URI is matched..."), for some reasonsm even though this section is seen in the TOC, the link to it is not working For ex, name of webapp is "rest", CXFServlet's url pattern is "/cxf/*", jaxrs:address is "/service", and the resource class's path is "/monitor" So it will be /rest/cxf/service/monitor/* URIs that will be matched against this resource class. You can make it /rest/service/monitor/* if CXFServlet will use "/*" or both CXFServlet and jaxrs:address will do "/*" but Path will be /service/monitor. Likewise you can make it /rest/cxf/monitor/* If you do /* in jaxrs:endpoint or both CXFServlet and jaxrs:address will do "/*" but Path will be /cxf/monitor Hope it helps, Cheers, Sergey -----Original Message----- From: Stopp, Bryan [mailto:[email protected]] Sent: 01 May 2009 22:42 To: [email protected] Subject: RE: List Restful WebServices Ok, I can get behind that it's kinda confusing to determine what to list. But I guess my question is still: without the list, how do I guess/logically conclude based on building the URL through the different pieces what the URL should be? -Bryan Stopp Software Engineer Web Application Development Extension: 51753 Commercial: 816-435-1753 -----Original Message----- From: Sergey Beryozkin [mailto:[email protected]] Sent: Friday, May 01, 2009 3:16 PM To: [email protected] Subject: RE: List Restful WebServices Hi, This is a long pending issue which I'm hoping to fix in 2.2.2-SNAPSHOT We need to think how to represent the metadata for (restful) services in a number of ways. WADL would likely be an obvious answer but I'd like to think what is that that we can do differently in this regard... For ex, what would you expect to see when clicking on such (yet nonexistent) links ? WADL ? What about WSDL 2.0 ? Many users do combine JAXRS & JAXWS so perhaps in such cases we can offer an option of showing the metadata using WSDL 2.0 (in addition to WADL for JAXRS services). We have few other ideas on how to present the metadata but for we need to find some good time for this task to be done... Cheers, Sergey -----Original Message----- From: Stopp, Bryan [mailto:[email protected]] Sent: 01 May 2009 20:01 To: [email protected] Subject: List Restful WebServices After some struggling i was finally able a JAX-RS webservice (using annotations) up and running. The problem is i can't seem to located the webservice! My CXF Servlet is set up to respond on URL /monitor/ And my webService is coded-up ala: @Path("/monitor/") public class MonitorTest { @GET public Response runTest() { System.out.println("Hit the test!!!"); return Response.ok().build(); } } When i start my tomcat i see this in the logs: INFO: Setting the server's publish address to be /monitor/ And when hit the url: http://localhost:8080/jaxrs-tests/monitor/ <http://localhost:8080/jaxrs-tests/monitor/> I see "Available Services:" but nothing else listed. I also tried http://localhost:8080/jaxrs-tests/monitor/services/ <http://localhost:8080/jaxrs-tests/monitor/services/> but got the same result. Can anyone tell me how to find out what my webservice's URL is? -B PRIVILEGED AND CONFIDENTIAL This email transmission contains privileged and confidential information intended only for the use of the individual or entity named above. If the reader of the email is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any use, dissemination or copying of this email transmission is strictly prohibited by the sender. If you have received this transmission in error, please delete the email and immediately notify the sender via the email return address or mailto:[email protected]. Thank you.
