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

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

commit 715d5c49a6d8115ab98072d46bb5ca590a20156a
Author: Daniel Kulp <d...@kulp.com>
AuthorDate: Wed Dec 7 12:55:43 2022 -0500

    Fix compile failure and test (missing file)
---
 .../apache/cxf/jaxws/body/RpcBodyServerTest.java   | 21 ++++++++--------
 .../soapbody_rpc_provider/sayHello2Msg.xml         | 28 ++++++++++++++++++++++
 2 files changed, 39 insertions(+), 10 deletions(-)

diff --git 
a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/body/RpcBodyServerTest.java
 
b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/body/RpcBodyServerTest.java
index c20b465e83..11c6eb962c 100644
--- 
a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/body/RpcBodyServerTest.java
+++ 
b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/body/RpcBodyServerTest.java
@@ -25,13 +25,13 @@ import java.io.InputStream;
 import java.net.URL;
 
 import javax.xml.namespace.QName;
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.Endpoint;
+import javax.xml.ws.Service;
+import javax.xml.ws.soap.SOAPFaultException;
 
-import jakarta.xml.soap.MessageFactory;
-import jakarta.xml.soap.SOAPMessage;
-import jakarta.xml.ws.Dispatch;
-import jakarta.xml.ws.Endpoint;
-import jakarta.xml.ws.Service;
-import jakarta.xml.ws.soap.SOAPFaultException;
 import org.apache.cxf.BusFactory;
 import org.apache.cxf.jaxws.AbstractJaxWsTest;
 import org.apache.header_test.rpc.SOAPRPCHeaderService;
@@ -65,7 +65,7 @@ public class RpcBodyServerTest extends AbstractJaxWsTest {
         assertNotNull(service);
         Dispatch<SOAPMessage> dispatch = service
             .createDispatch(new QName("http://apache.org/body_test/rpc";, 
"SoapRPCBodyPort"),
-                    jakarta.xml.soap.SOAPMessage.class, Service.Mode.MESSAGE);
+                    javax.xml.soap.SOAPMessage.class, Service.Mode.MESSAGE);
 
         MessageFactory factory = MessageFactory.newInstance();
         InputStream is = getClass().getClassLoader()
@@ -97,7 +97,7 @@ public class RpcBodyServerTest extends AbstractJaxWsTest {
         assertNotNull(service);
         Dispatch<SOAPMessage> dispatch = service
             .createDispatch(new QName("http://apache.org/body_test/rpc";, 
"SoapRPCBodyPort"),
-                    jakarta.xml.soap.SOAPMessage.class, Service.Mode.MESSAGE);
+                    javax.xml.soap.SOAPMessage.class, Service.Mode.MESSAGE);
 
         MessageFactory factory = MessageFactory.newInstance();
         InputStream is = getClass().getClassLoader()
@@ -120,11 +120,12 @@ public class RpcBodyServerTest extends AbstractJaxWsTest {
         assertNotNull(service);
         Dispatch<SOAPMessage> dispatch = service
             .createDispatch(new QName("http://apache.org/body_test/rpc";, 
"SoapRPCBodyPort"),
-                    jakarta.xml.soap.SOAPMessage.class, Service.Mode.MESSAGE);
+                    javax.xml.soap.SOAPMessage.class, Service.Mode.MESSAGE);
 
         MessageFactory factory = MessageFactory.newInstance();
         InputStream is = getClass().getClassLoader()
-            .getResourceAsStream("./soapbody_rpc_provider/sayHello2Msg.xml");
+            .getResourceAsStream("./soapbody_rpc_provider/sayHelloMsg.xml");
+        assertNotNull(is);
         SOAPMessage inMessage = factory.createMessage(null, is);
         SOAPMessage response = dispatch.invoke(inMessage);
         is.close();
diff --git 
a/rt/frontend/jaxws/src/test/resources/soapbody_rpc_provider/sayHello2Msg.xml 
b/rt/frontend/jaxws/src/test/resources/soapbody_rpc_provider/sayHello2Msg.xml
new file mode 100644
index 0000000000..1aa2fffede
--- /dev/null
+++ 
b/rt/frontend/jaxws/src/test/resources/soapbody_rpc_provider/sayHello2Msg.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!--
+  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.
+-->
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="http://apache.org/body_test/rpc";
+    xmlns:SOAP-ENC = "http://schemas.xmlsoap.org/soap/encoding/";
+    xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance";>
+   <soapenv:Header/>
+   <soapenv:Body>
+      <ns1:sayHello>
+      </ns1:sayHello>
+   </soapenv:Body>
+</soapenv:Envelope>

Reply via email to