cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7101] Prototyping a client app
Date Mon, 24 Oct 2016 16:13:11 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes ad7a7ba7d -> 03d40ca7c


[CXF-7101] Prototyping a client app


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/03d40ca7
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/03d40ca7
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/03d40ca7

Branch: refs/heads/3.1.x-fixes
Commit: 03d40ca7c69745cee841583464e7e4cca972bb8b
Parents: ad7a7ba
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Oct 24 17:10:52 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Oct 24 17:12:49 2016 +0100

----------------------------------------------------------------------
 .../release/samples/jaxws_spring_boot/pom.xml   |  2 +-
 .../sample/ws/SampleWsApplicationClient.java    | 46 ++++++++++++++++++++
 2 files changed, 47 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/03d40ca7/distribution/src/main/release/samples/jaxws_spring_boot/pom.xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jaxws_spring_boot/pom.xml b/distribution/src/main/release/samples/jaxws_spring_boot/pom.xml
index 99b5a96..db0eb80 100644
--- a/distribution/src/main/release/samples/jaxws_spring_boot/pom.xml
+++ b/distribution/src/main/release/samples/jaxws_spring_boot/pom.xml
@@ -56,7 +56,7 @@
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>exec-maven-plugin</artifactId>
                 <configuration>
-                    <mainClass>sample.ws.service.client.HelloClient</mainClass>
+                    <mainClass>sample.ws.SampleWsApplicationClient</mainClass>
                 </configuration>
             </plugin>
 

http://git-wip-us.apache.org/repos/asf/cxf/blob/03d40ca7/distribution/src/main/release/samples/jaxws_spring_boot/src/main/java/sample/ws/SampleWsApplicationClient.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jaxws_spring_boot/src/main/java/sample/ws/SampleWsApplicationClient.java
b/distribution/src/main/release/samples/jaxws_spring_boot/src/main/java/sample/ws/SampleWsApplicationClient.java
new file mode 100644
index 0000000..76f4611
--- /dev/null
+++ b/distribution/src/main/release/samples/jaxws_spring_boot/src/main/java/sample/ws/SampleWsApplicationClient.java
@@ -0,0 +1,46 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package sample.ws;
+
+import java.io.StringReader;
+
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+
+
+public class SampleWsApplicationClient {
+
+ 
+    public static void main(String[] args) {
+        String address = "http://localhost:8080/Service/Hello";
+        // final String request =
+        // "<q0:sayHello xmlns:q0=\"http://service.ws.sample\">Elan</q0:sayHello>";
+        String request = "<q0:sayHello xmlns:q0=\"http://service.ws.sample/\"><myname>Elan</myname></q0:sayHello>";
+
+        StreamSource source = new StreamSource(new StringReader(request));
+        StreamResult result = new StreamResult(System.out);
+
+        //assertThat(this.output.toString(),
+        //           containsString("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+        //                          + "<ns2:sayHelloResponse xmlns:ns2=\"http://service.ws.sample/\">"
+        //                          + "<return>Hello, Welcome to CXF Spring boot Elan!!!</return>"
+        //                          + "</ns2:sayHelloResponse>"));
+    }
+
+}


Mime
View raw message