cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r485541 - /incubator/cxf/trunk/distribution/src/main/release/samples/restful/src/demo/restful/client/Client.java
Date Mon, 11 Dec 2006 07:55:32 GMT
Author: jliu
Date: Sun Dec 10 23:55:29 2006
New Revision: 485541

URL: http://svn.apache.org/viewvc?view=rev&rev=485541
Log:
Fix a checkstyle problem in my previous commit

Modified:
    incubator/cxf/trunk/distribution/src/main/release/samples/restful/src/demo/restful/client/Client.java

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/restful/src/demo/restful/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/restful/src/demo/restful/client/Client.java?view=diff&rev=485541&r1=485540&r2=485541
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/restful/src/demo/restful/client/Client.java
(original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/restful/src/demo/restful/client/Client.java
Sun Dec 10 23:55:29 2006
@@ -20,7 +20,6 @@
 package demo.restful.client;
 
 import java.io.ByteArrayOutputStream;
-import java.io.File;
 import java.io.InputStream;
 import java.net.URI;
 import java.net.URL;
@@ -44,9 +43,6 @@
 
 import org.apache.cxf.helpers.XMLUtils;
 
-import org.apache.hello_world_xml_http.wrapped.Cutomerservice;
-
-
 public final class Client {
 
     private Client() {
@@ -82,13 +78,14 @@
 
         Service service = Service.create(serviceName);
         service.addPort(portName, HTTPBinding.HTTP_BINDING,  endpointAddress);
-        Dispatch<DOMSource> dispatcher = service.createDispatch(portName, DOMSource.class,
Service.Mode.PAYLOAD);
+        Dispatch<DOMSource> dispatcher = service.createDispatch(portName, 
+                                                                DOMSource.class, Service.Mode.PAYLOAD);
         Map<String, Object> requestContext = dispatcher.getRequestContext();
 
         requestContext.put(MessageContext.HTTP_REQUEST_METHOD, new String("GET"));
         requestContext.put(MessageContext.QUERY_STRING, "id=1234");
         requestContext.put(MessageContext.PATH_INFO, path);
-        System.out.println("Invoking server through HTTP GET to query customer info using
JAX-WS Dispatch");
+        System.out.println("Invoking through HTTP GET to query customer using JAX-WS Dispatch");
         DOMSource returnSource = dispatcher.invoke(null);
         printSource(returnSource);
 
@@ -99,7 +96,7 @@
         DOMSource reqMsg = new DOMSource(doc);
 
         requestContext.put(MessageContext.HTTP_REQUEST_METHOD, "POST");
-        System.out.println("Invoking server through HTTP POST to update customer info using
JAX-WS Dispatch");
+        System.out.println("Invoking through HTTP POST to update customer using JAX-WS Dispatch");
         DOMSource result = dispatcher.invoke(reqMsg);
         printSource(result);
 



Mime
View raw message