servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r793798 - in /servicemix/smx4/features/trunk/examples: cxf-jaxrs/ cxf-jaxrs/src/main/java/org/apache/servicemix/examples/cxf/jaxrs/client/ cxf-ws-addressing/src/main/java/org/apache/servicemix/examples/cxf/wsaddressing/
Date Tue, 14 Jul 2009 05:45:41 GMT
Author: ffang
Date: Tue Jul 14 05:45:39 2009
New Revision: 793798

URL: http://svn.apache.org/viewvc?rev=793798&view=rev
Log:
[SMX4-320]port used in examples should be changed from 8080 to 8181

Modified:
    servicemix/smx4/features/trunk/examples/cxf-jaxrs/README.txt
    servicemix/smx4/features/trunk/examples/cxf-jaxrs/src/main/java/org/apache/servicemix/examples/cxf/jaxrs/client/Client.java
    servicemix/smx4/features/trunk/examples/cxf-ws-addressing/src/main/java/org/apache/servicemix/examples/cxf/wsaddressing/Client.java

Modified: servicemix/smx4/features/trunk/examples/cxf-jaxrs/README.txt
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-jaxrs/README.txt?rev=793798&r1=793797&r2=793798&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-jaxrs/README.txt (original)
+++ servicemix/smx4/features/trunk/examples/cxf-jaxrs/README.txt Tue Jul 14 05:45:39 2009
@@ -47,7 +47,7 @@
 
 Now, just open your browser and go to the following url:
 
-  http://localhost:8080/cxf/crm/customerservice/customers/123
+  http://localhost:8181/cxf/crm/customerservice/customers/123
 
 It should display an XML representation for customer 123 (if you use Safari, 
 make sure to right click the window and select 'Show Source', else the page
@@ -55,7 +55,7 @@
 
 Or you can also test it from ServiceMix console using:
 
-  utils/cat http://localhost:8080/cxf/crm/customerservice/customers/123
+  utils/cat http://localhost:8181/cxf/crm/customerservice/customers/123
 
 Or you can launch a programmatic Java client via:
 
@@ -70,16 +70,16 @@
 # Create a customer
 #
 #
-curl -X POST -T src/main/resources/org/apache/servicemix/examples/cxf/jaxrs/client/add_customer.xml
-H "Content-Type: text/xml" http://localhost:8080/cxf/crm/customerservice/customers
+curl -X POST -T src/main/resources/org/apache/servicemix/examples/cxf/jaxrs/client/add_customer.xml
-H "Content-Type: text/xml" http://localhost:8181/cxf/crm/customerservice/customers
 
 # Retrieve the customer instance with id 123
 #
-curl http://localhost:8080/cxf/crm/customerservice/customers/123
+curl http://localhost:8181/cxf/crm/customerservice/customers/123
 
 # Update the customer instance with id 123
 #
-curl -X PUT -T src/main/resources/org/apache/servicemix/examples/cxf/jaxrs/client/update_customer.xml
-H "Content-Type: text/xml" http://localhost:8080/cxf/crm/customerservice/customers
+curl -X PUT -T src/main/resources/org/apache/servicemix/examples/cxf/jaxrs/client/update_customer.xml
-H "Content-Type: text/xml" http://localhost:8181/cxf/crm/customerservice/customers
 
 # Delete the customer instance with id 123
 #
-curl -X DELETE http://localhost:8079/cxf/crm/customerservice/customers/123
+curl -X DELETE http://localhost:8181/cxf/crm/customerservice/customers/123

Modified: servicemix/smx4/features/trunk/examples/cxf-jaxrs/src/main/java/org/apache/servicemix/examples/cxf/jaxrs/client/Client.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-jaxrs/src/main/java/org/apache/servicemix/examples/cxf/jaxrs/client/Client.java?rev=793798&r1=793797&r2=793798&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-jaxrs/src/main/java/org/apache/servicemix/examples/cxf/jaxrs/client/Client.java
(original)
+++ servicemix/smx4/features/trunk/examples/cxf-jaxrs/src/main/java/org/apache/servicemix/examples/cxf/jaxrs/client/Client.java
Tue Jul 14 05:45:39 2009
@@ -39,14 +39,14 @@
 
         // Sent HTTP GET request to query customer info
         System.out.println("Sent HTTP GET request to query customer info");
-        URL url = new URL("http://localhost:8080/cxf/crm/customerservice/customers/123");
+        URL url = new URL("http://localhost:8181/cxf/crm/customerservice/customers/123");
         InputStream in = url.openStream();
         System.out.println(getStringFromInputStream(in));
 
         // Sent HTTP GET request to query sub resource product info
         System.out.println("\n");
         System.out.println("Sent HTTP GET request to query sub resource product info");
-        url = new URL("http://localhost:8080/cxf/crm/customerservice/orders/223/products/323");
+        url = new URL("http://localhost:8181/cxf/crm/customerservice/orders/223/products/323");
         in = url.openStream();
         System.out.println(getStringFromInputStream(in));
 
@@ -56,7 +56,7 @@
         Client client = new Client();
         String inputFile = client.getClass().getResource("update_customer.xml").getFile();
         File input = new File(inputFile);
-        PutMethod put = new PutMethod("http://localhost:8080/cxf/crm/customerservice/customers");
+        PutMethod put = new PutMethod("http://localhost:8181/cxf/crm/customerservice/customers");
         RequestEntity entity = new FileRequestEntity(input, "text/xml; charset=ISO-8859-1");
         put.setRequestEntity(entity);
         HttpClient httpclient = new HttpClient();
@@ -77,7 +77,7 @@
         System.out.println("Sent HTTP POST request to add customer");
         inputFile = client.getClass().getResource("add_customer.xml").getFile();
         input = new File(inputFile);
-        PostMethod post = new PostMethod("http://localhost:8080/cxf/crm/customerservice/customers");
+        PostMethod post = new PostMethod("http://localhost:8181/cxf/crm/customerservice/customers");
         post.addRequestHeader("Accept" , "text/xml");
         entity = new FileRequestEntity(input, "text/xml; charset=ISO-8859-1");
         post.setRequestEntity(entity);

Modified: servicemix/smx4/features/trunk/examples/cxf-ws-addressing/src/main/java/org/apache/servicemix/examples/cxf/wsaddressing/Client.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-ws-addressing/src/main/java/org/apache/servicemix/examples/cxf/wsaddressing/Client.java?rev=793798&r1=793797&r2=793798&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-ws-addressing/src/main/java/org/apache/servicemix/examples/cxf/wsaddressing/Client.java
(original)
+++ servicemix/smx4/features/trunk/examples/cxf-ws-addressing/src/main/java/org/apache/servicemix/examples/cxf/wsaddressing/Client.java
Tue Jul 14 05:45:39 2009
@@ -35,7 +35,7 @@
     }
     
     public void sendRequest() throws Exception {
-        URLConnection connection = new URL("http://localhost:8080/cxf/SoapContext/SoapPort")
+        URLConnection connection = new URL("http://localhost:8181/cxf/SoapContext/SoapPort")
                 .openConnection();
         connection.setDoInput(true);
         connection.setDoOutput(true);



Mime
View raw message