tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andygumbre...@apache.org
Subject tomee git commit: Update CXF 3.1.13
Date Tue, 26 Sep 2017 17:09:41 GMT
Repository: tomee
Updated Branches:
  refs/heads/master acacacee9 -> 3d74895c5


Update CXF 3.1.13


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/3d74895c
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/3d74895c
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/3d74895c

Branch: refs/heads/master
Commit: 3d74895c51d3815f09217826671ecd05b5f49353
Parents: acacace
Author: Andy Gumbrecht <agumbrecht@tomitribe.com>
Authored: Tue Sep 26 10:09:36 2017 -0700
Committer: Andy Gumbrecht <agumbrecht@tomitribe.com>
Committed: Tue Sep 26 10:09:36 2017 -0700

----------------------------------------------------------------------
 .../superbiz/example/jaxws/MeetingPlanner.java  |  3 +++
 .../example/jaxws/MeetingPlannerTest.java       | 21 +++++++++++++++++++-
 pom.xml                                         |  2 +-
 3 files changed, 24 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/3d74895c/examples/applicationcomposer-jaxws-cdi/src/main/java/org/superbiz/example/jaxws/MeetingPlanner.java
----------------------------------------------------------------------
diff --git a/examples/applicationcomposer-jaxws-cdi/src/main/java/org/superbiz/example/jaxws/MeetingPlanner.java
b/examples/applicationcomposer-jaxws-cdi/src/main/java/org/superbiz/example/jaxws/MeetingPlanner.java
index a71404d..ad4b887 100644
--- a/examples/applicationcomposer-jaxws-cdi/src/main/java/org/superbiz/example/jaxws/MeetingPlanner.java
+++ b/examples/applicationcomposer-jaxws-cdi/src/main/java/org/superbiz/example/jaxws/MeetingPlanner.java
@@ -16,10 +16,13 @@
  */
 package org.superbiz.example.jaxws;
 
+import javax.jws.WebMethod;
 import javax.jws.WebService;
 import java.util.Date;
 
 @WebService
 public interface MeetingPlanner {
+
+    @WebMethod(operationName = "book", exclude = false)
     boolean book(final Date date);
 }

http://git-wip-us.apache.org/repos/asf/tomee/blob/3d74895c/examples/applicationcomposer-jaxws-cdi/src/test/java/org/superbiz/example/jaxws/MeetingPlannerTest.java
----------------------------------------------------------------------
diff --git a/examples/applicationcomposer-jaxws-cdi/src/test/java/org/superbiz/example/jaxws/MeetingPlannerTest.java
b/examples/applicationcomposer-jaxws-cdi/src/test/java/org/superbiz/example/jaxws/MeetingPlannerTest.java
index e862038..4d82bfa 100644
--- a/examples/applicationcomposer-jaxws-cdi/src/test/java/org/superbiz/example/jaxws/MeetingPlannerTest.java
+++ b/examples/applicationcomposer-jaxws-cdi/src/test/java/org/superbiz/example/jaxws/MeetingPlannerTest.java
@@ -24,10 +24,16 @@ import org.apache.openejb.testing.EnableServices;
 import org.apache.openejb.testing.Module;
 import org.apache.openejb.testng.PropertiesBuilder;
 import org.apache.openejb.util.NetworkUtil;
+import org.codehaus.stax2.io.Stax2StringSource;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.util.JAXBSource;
 import javax.xml.namespace.QName;
+import javax.xml.transform.Source;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.ws.Dispatch;
 import javax.xml.ws.Service;
 import java.net.MalformedURLException;
 import java.net.URL;
@@ -55,11 +61,24 @@ public class MeetingPlannerTest {
     }
 
     @Test
-    public void book() throws MalformedURLException {
+    public void bookPort() throws Exception {
         final Service service = Service.create(
                 new URL("http://127.0.0.1:" + JAX_WS_PORT + "/demo/meeting-planner?wsdl"),
                 new QName("http://jaxws.example.superbiz.org/", "MeetingPlannerImplService"));
         final MeetingPlanner planner = service.getPort(MeetingPlanner.class);
         assertTrue(planner.book(new Date(System.currentTimeMillis() + 1000000)));
     }
+
+    @Test
+    public void bookDispatch() throws Exception {
+        final Service service = Service.create(
+                new URL("http://127.0.0.1:" + JAX_WS_PORT + "/demo/meeting-planner?wsdl"),
+                new QName("http://jaxws.example.superbiz.org/", "MeetingPlannerImplService"));
+        final JAXBContext jc = JAXBContext.newInstance(MeetingPlannerImpl.class);
+        final Dispatch<Object> dispatch = service.createDispatch(new QName("http://jaxws.example.superbiz.org/",
"MeetingPlannerImplPort"), jc, Service.Mode.PAYLOAD);
+
+        final MeetingPlannerImpl msg = new MeetingPlannerImpl();
+        final Object response = dispatch.invoke(msg);
+        System.out.println("response = " + response);
+    }
 }

http://git-wip-us.apache.org/repos/asf/tomee/blob/3d74895c/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 4145ec8..87d365d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -133,7 +133,7 @@
 
     <tomcat.version>8.5.20</tomcat.version>
 
-    <cxf.version>3.1.12</cxf.version>
+    <cxf.version>3.1.13</cxf.version>
     <ehcache.version>2.10.3</ehcache.version>
     <!-- used by cxf for security (replay attack) -->
     <jetty.version>7.5.3.v20111011</jetty.version>


Mime
View raw message