[cxf] branch 3.4.x-fixes updated (66381d4 -> 2f51b38)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[cxf] branch 3.4.x-fixes updated (66381d4 -> 2f51b38)

reta
This is an automated email from the ASF dual-hosted git repository.

reta pushed a change to branch 3.4.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git.


    from 66381d4  Revert "Update Jetty to 9.4.37.v20210219"
     new 3795003  Update to asm 9.1
     new a4a5098  Added test case to excercise ReflectionServiceFactoryBean validation capabilities
     new 2f51b38  Recording .gitmergeinfo Changes

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .gitmergeinfo                                      |  1 +
 parent/pom.xml                                     |  2 +-
 .../java/org/apache/cxf/jaxws/GreeterTest.java     | 38 ++++++++++++++++++++++
 3 files changed, 40 insertions(+), 1 deletion(-)

Reply | Threaded
Open this post in threaded view
|

[cxf] 01/03: Update to asm 9.1

reta
This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch 3.4.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 37950031fd8a6824ce90bf2945b70a2600293482
Author: reta <[hidden email]>
AuthorDate: Sun Feb 21 16:26:27 2021 -0500

    Update to asm 9.1
   
    (cherry picked from commit b7a9161816949c5c6380c41c6ddf1a712e3d5d3e)
---
 parent/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parent/pom.xml b/parent/pom.xml
index 30b1cc9..52dc1f2 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -54,7 +54,7 @@
         <!-- stuff related to ASM -->
         <cxf.asm.groupId>org.ow2.asm</cxf.asm.groupId>
         <cxf.asm.artifactId>asm</cxf.asm.artifactId>
-        <cxf.asm.version>9.0</cxf.asm.version>
+        <cxf.asm.version>9.1</cxf.asm.version>
         <cxf.osgi.asm.version>[3.0,10)</cxf.osgi.asm.version>
         <cxf.easymock.version>4.2</cxf.easymock.version>
         <!-- OSGi related properties -->

Reply | Threaded
Open this post in threaded view
|

[cxf] 02/03: Added test case to excercise ReflectionServiceFactoryBean validation capabilities

reta
In reply to this post by reta
This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch 3.4.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit a4a5098f5c8683604e84f594d95f2a041f01da6b
Author: reta <[hidden email]>
AuthorDate: Tue Feb 23 15:37:24 2021 -0500

    Added test case to excercise ReflectionServiceFactoryBean validation capabilities
   
    (cherry picked from commit 1afeaf7dc2b62c7a53cfc6b6253514ef80d312eb)
---
 .../java/org/apache/cxf/jaxws/GreeterTest.java     | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/GreeterTest.java b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/GreeterTest.java
index eb44100..5190cd2 100644
--- a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/GreeterTest.java
+++ b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/GreeterTest.java
@@ -37,8 +37,46 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 
 public class GreeterTest extends AbstractJaxWsTest {
+    @Test
+    public void testEndpointValidate() throws Exception {
+        ReflectionServiceFactoryBean bean = new JaxWsServiceFactoryBean();
+        URL resource = getClass().getResource("/wsdl/hello_world.wsdl");
+        assertNotNull(resource);
+        bean.setWsdlURL(resource.toString());
+        bean.setBus(bus);
+        bean.setServiceClass(GreeterImpl.class);
+        bean.setValidate(true);
+        
+        GreeterImpl greeter = new GreeterImpl();
+        BeanInvoker invoker = new BeanInvoker(greeter);
 
 
+        Service service = bean.create();
+
+        assertEquals("SOAPService", service.getName().getLocalPart());
+        assertEquals("http://apache.org/hello_world_soap_http", service.getName().getNamespaceURI());
+
+        ServerFactoryBean svr = new ServerFactoryBean();
+        svr.setBus(bus);
+        svr.setServiceFactory(bean);
+        svr.setInvoker(invoker);
+
+        svr.create();
+
+        Node response = invoke("http://localhost:9000/SoapContext/SoapPort",
+                           LocalTransportFactory.TRANSPORT_ID,
+                           "GreeterMessage.xml");
+
+        assertEquals(1, greeter.getInvocationCount());
+
+        assertNotNull(response);
+
+        addNamespace("h", "http://apache.org/hello_world_soap_http/types");
+
+        assertValid("/s:Envelope/s:Body", response);
+        assertValid("//h:sayHiResponse", response);
+    }
+
     @Test
     public void testEndpoint() throws Exception {
         ReflectionServiceFactoryBean bean = new JaxWsServiceFactoryBean();

Reply | Threaded
Open this post in threaded view
|

[cxf] 03/03: Recording .gitmergeinfo Changes

reta
In reply to this post by reta
This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch 3.4.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 2f51b38911a24061bcb816af9a427466269f72d5
Author: reta <[hidden email]>
AuthorDate: Tue Feb 23 15:38:54 2021 -0500

    Recording .gitmergeinfo Changes
---
 .gitmergeinfo | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitmergeinfo b/.gitmergeinfo
index f5442a0..f19f193 100644
--- a/.gitmergeinfo
+++ b/.gitmergeinfo
@@ -41,6 +41,7 @@ M 88907f141ee80792627da3cc7846d1562f6c0238
 M 8b67b6f672d25f1128924e8aac58a6f395fe3511
 M 8c4f04855a5d8623daff2aa8a8856367879c624b
 M 954085421900efbf89643b5ab8f187a237e42eb4
+M 9980b0472524e1010aaf7a4a3fe5ff072270efe3
 M 9bb8e487235d728bb80a90e7e2f4a9433b5ef033
 M 9c17f2fb90a9929d0dc8e4f090da78547a4e7a02
 M 9df9b22a4032b19ea953600ebdfa84e8c15d2370