Hi Luciano,

>
> Could you please post your resource interface with the proper JAX-RS
> annotations which might give us some hints. Without looking at the
> code, you might be missing a @Consumes or @Remotable annotation.
>
> First I had the interface of,

import org.oasisopen.sca.annotation.Remotable;

import javax.ws.rs.*;

@Remotable
public interface HelloWorld {

    @GET
    @Path("sayHello")
    String sayHello(@QueryParam("name") String name);

}

Then I tried out with @Produces and  @Consumes

package org.eranda.sca;

import org.oasisopen.sca.annotation.Remotable;

import javax.ws.rs.*;

@Remotable
public interface HelloWorld {

    @GET
    @Path("sayHello")
    @Consumes("text/plain")
    @Produces("text/plain")
    String sayHello(@QueryParam("name") String name);

}

Now I am not getting the exceptions neither the respond.

-- 
Eranda Sooriyabandara
Blog: http://www.emsooriyabandara.blogspot.com/
LInkedIn: http://lk.linkedin.com/in/erandasooriyabandara

Reply via email to