You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2021/02/23 20:39:46 UTC

[cxf] branch 3.3.x-fixes updated (a2ded9f -> 2e62f63)

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

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


    from a2ded9f  Revert "Update Jetty to 9.4.37.v20210219"
     new 183084a  Added test case to excercise ReflectionServiceFactoryBean validation capabilities
     new 2e62f63  Recording .gitmergeinfo Changes

The 2 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                                      |  7 ++++
 .../java/org/apache/cxf/jaxws/GreeterTest.java     | 38 ++++++++++++++++++++++
 2 files changed, 45 insertions(+)


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

Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 183084a58abde1d7e9750e4f3ac9b40218e3c35f
Author: reta <dr...@gmail.com>
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();


[cxf] 02/02: Recording .gitmergeinfo Changes

Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 2e62f63cfc754ebfb6b4463f8d24ef3c27ee99a3
Author: reta <dr...@gmail.com>
AuthorDate: Tue Feb 23 15:39:29 2021 -0500

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

diff --git a/.gitmergeinfo b/.gitmergeinfo
index 20ca719..d4e61f8 100644
--- a/.gitmergeinfo
+++ b/.gitmergeinfo
@@ -498,6 +498,7 @@ B fce6a87bb1a58b4290d749a8ecc141046fa6f9ff
 B fdcccee816a8639a4b253d12d44beb4cb285789b
 B ff2b7c87de12d16cd71a62e7a1f0a0be3901b39e
 B ff7b028eeea39fedeb06207753fe6dcb9b0d8cca
+M 00adb9d87b59e3ba73cfe323c5975eed75780ee3
 M 00c77f3e98985d339b4bb3488a7ea8799eefcdec
 M 01eb99f3912adfb191428b5ee2fde2e7650815ff
 M 02de4c435f4de72fc93291bebd953dc11d53c02d
@@ -526,6 +527,7 @@ M 2275d49772676ac72bc14ebbc3173719cd72e635
 M 22a365b929822d1dbe157e0f22d228cfec21e6e2
 M 267b84c59053de915b2e783daf9a236a7b5df00b
 M 2696ea28b67f21b310e400b990da50016b62bd90
+M 269c7c8fe4553c5307fd938dbba51af5a1535482
 M 29482be8df227ddbcac01e957c84e4807211865d
 M 299d6a844b99a69555355b2f9baca3e6ec13a918
 M 29f9d03b69ee071d3b83e4f0509a6b6e01b96564
@@ -539,6 +541,7 @@ M 325ed0436bc9cfa9150b3504a54b5911b47e3266
 M 330f0f9d83c5e689a8db3c107b3d27a294161bbb
 M 336d49d4e88641a6ffaf757185ff0ff93473322c
 M 33abf4131ccc46b4027dbbba1c0347445473c1ea
+M 34a8f691a1926a26d2ecefa527eaf76f68b98def
 M 375b065fa6c6fdc73b2d137654f5b60cc3464793
 M 39ff641f3d81d8e0b9487ae8c49ac2a5bf055bc1
 M 3b119ca6630f1384b93cd718d0cd95ccabc81e91
@@ -620,6 +623,7 @@ M 940c3d58c109a5dd3bfb756e1a5d15b2558fbb1b
 M 954085421900efbf89643b5ab8f187a237e42eb4
 M 95c3c37092751b1d00b6f2c26642f18ebcbba878
 M 972a2755ca85ba86f473b0ce46f23bf6193ced62
+M 9980b0472524e1010aaf7a4a3fe5ff072270efe3
 M 9a5b4568a94a72569caf4d012a42df6ebbe02779
 M 9bb8e487235d728bb80a90e7e2f4a9433b5ef033
 M 9c17f2fb90a9929d0dc8e4f090da78547a4e7a02
@@ -647,6 +651,7 @@ M aeb09e380af8e8e298bc569fbb82c33598fdb142
 M aefdc0759e30cb44d1729f08d1f31ff516a14e03
 M b5902ef6f3e52b0a0be429a0114e59d404664080
 M b70a3916daf64c15689a30e0a77bdb4c9dbaead4
+M b7a9161816949c5c6380c41c6ddf1a712e3d5d3e
 M b84270df1eb3a92b9d7e05dfd7231b0580f7bb90
 M b899a64b3298afc2ced04dae7955f82f29a5cd01
 M b9732e5a2d4cead834af8246a35b863aa7b8c811
@@ -666,6 +671,7 @@ M cbc0fde7f85d01e379e40a7f27fe5cea20169ddf
 M cbeb9a21ba4a46f1861851f5bc56ee90d89a2225
 M ccb743e48e9ed99e240ae05f373b6ff799085049
 M ce504146b81a2ffb2e8cda36d8bdf8486730e485
+M d03b70362b2053a6e529250a0a2e5d102a5a198d
 M d17a51cbff36aa314374d4621434968422fb9c9f
 M d37c3907c3ae94e607a8cc411f9243562637aaa2
 M d5ad40bf29cf57f13aaeeca31e0aac61487095b4
@@ -694,6 +700,7 @@ M ee89945ac5974484c13a533ed03c03702bf6c9c3
 M eef3b3514b2ea039d9026ec85d4289382277591f
 M efc5d35498f582335821cc6a2b750df935295f14
 M f22022b1f094efdcc81b63d9f3f10b85894fcdb8
+M f315acdde42f967102c7503d46d1edbb3affc210
 M f355b9b3ec8b6f77198baefa051bd817807e5a94
 M f3e2a52faec1210b1a45eaa36e3812ca03a4969d
 M f5899862b61bc39a7e2bb7945071ebfa3e6a8153