From 91e796407efd625e37853545415ddcd44acb0fdc Mon Sep 17 00:00:00 2001 From: rfeng Date: Sat, 26 Jun 2010 00:02:37 +0000 Subject: Use Response as the type git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@958151 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/services/customer/CustomerService.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/services/customer/CustomerService.java') diff --git a/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/services/customer/CustomerService.java b/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/services/customer/CustomerService.java index 9d640376e7..94ebc1e1b8 100644 --- a/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/services/customer/CustomerService.java +++ b/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/services/customer/CustomerService.java @@ -23,6 +23,7 @@ import javax.jws.WebResult; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; +import javax.ws.rs.core.Response; import org.oasisopen.sca.annotation.Remotable; @@ -33,8 +34,12 @@ public interface CustomerService { @WebResult(name = "Customer", targetNamespace = "") Customer get(); + @GET + @WebResult(name = "Customer", targetNamespace = "") + Response getResponse(); + @POST - void addCustomer(Customer customer); + Response addCustomer(Customer customer); @PUT void updateCustomer(Customer customer); -- cgit v1.2.3