cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r545464 - in /incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/com/acme/customer: CustomerService.java Main.java
Date Fri, 08 Jun 2007 09:33:01 GMT
Author: ningjiang
Date: Fri Jun  8 02:33:00 2007
New Revision: 545464

URL: http://svn.apache.org/viewvc?view=rev&rev=545464
Log:
CXF-712 get the restful_http_binding sample work again 

Modified:
    incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/com/acme/customer/CustomerService.java
    incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/com/acme/customer/Main.java

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/com/acme/customer/CustomerService.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/com/acme/customer/CustomerService.java?view=diff&rev=545464&r1=545463&r2=545464
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/com/acme/customer/CustomerService.java
(original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/com/acme/customer/CustomerService.java
Fri Jun  8 02:33:00 2007
@@ -28,7 +28,7 @@
 import org.codehaus.jra.Post;
 import org.codehaus.jra.Put;
 
-@WebService
+@WebService(targetNamespace = "http://customer.acme.com")
 public interface CustomerService {
 
     @Get

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/com/acme/customer/Main.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/com/acme/customer/Main.java?view=diff&rev=545464&r1=545463&r2=545464
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/com/acme/customer/Main.java
(original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/com/acme/customer/Main.java
Fri Jun  8 02:33:00 2007
@@ -61,6 +61,11 @@
         System.out.println("Started CustomerService!");
     
         System.out.println("Server ready...");
+
+        Thread.sleep(5 * 60 * 1000);
+        System.out.println("Server exiting");
+        System.exit(0);
+
     }
 
     private static void createRestService(Object serviceObj) {
@@ -122,6 +127,7 @@
         sf.setServiceClass(CustomerService.class);
         sf.setAddress("http://localhost:8080/soap");
         sf.getServiceFactory().setInvoker(new BeanInvoker(serviceObj));
+        sf.getServiceFactory().setWrapped(false);
 
         sf.create();
     }



Mime
View raw message