On Wed, Jul 20, 2011 at 4:41 AM, 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>
There is a helloworld sample which shows JAX-RS support at https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-jaxrs. The README in there describes how to use it. ...ant