Hi, You can take a look at the HelloWorld interface for the Jax-rs annotations, especially @Path and @GET. This way, you can use the browser to try a GET.
Raymond Feng Sent from my iPhone On Jul 19, 2011, at 8:41 PM, Eranda Sooriyabandara <0704...@gmail.com> wrote: > Hi devs, > I tested a sample HelloWorld REST service and need to ask some questions > related to it. > > When I start the service I got the following warning. > WARNING: The application Config Location property was not defined. > But I think it works properly because I cannot see 404 in > http://localhost:8085/HelloWorld. > > I want to see whether this sample works or not how can I do that? You can see > my helloworld.composite below. > > thanks > Eranda > > helloworld.composite > <?xml version="1.0" encoding="UTF-8"?> > <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" > xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1" > targetNamespace="http://sample" > name="helloworld-contribution"> > <component name="HelloWorldComponent"> > <implementation.java class="org.eranda.sca.HelloWorldImpl"/> > <service name="HelloWorld"> > <tuscany:binding.rest > uri="http://localhost:8085/HelloWorld"> > <tuscany:wireFormat.json /> > <tuscany:operationSelector.jaxrs /> > </tuscany:binding.rest> > </service> > </component> > </composite>