cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1169887 - in /cxf/branches/2.4.x-fixes: ./ systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/resources/GreetMe1WDocLiteralReq2.xml
Date Mon, 12 Sep 2011 19:30:28 GMT
Author: dkulp
Date: Mon Sep 12 19:30:28 2011
New Revision: 1169887

URL: http://svn.apache.org/viewvc?rev=1169887&view=rev
Log:
Merged revisions 1167352 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1167352 | dkulp | 2011-09-09 16:35:17 -0400 (Fri, 09 Sep 2011) | 1 line
  
  Added a test to show the need for CXF-3796
........

Added:
    cxf/branches/2.4.x-fixes/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/resources/GreetMe1WDocLiteralReq2.xml
      - copied unchanged from r1167352, cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/resources/GreetMe1WDocLiteralReq2.xml
Modified:
    cxf/branches/2.4.x-fixes/   (props changed)
    cxf/branches/2.4.x-fixes/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java

Propchange: cxf/branches/2.4.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.4.x-fixes/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java?rev=1169887&r1=1169886&r2=1169887&view=diff
==============================================================================
--- cxf/branches/2.4.x-fixes/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
(original)
+++ cxf/branches/2.4.x-fixes/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
Mon Sep 12 19:30:28 2011
@@ -74,6 +74,7 @@ import org.apache.hello_world_soap_http.
 import org.apache.hello_world_soap_http.types.GreetMeLater;
 import org.apache.hello_world_soap_http.types.GreetMeResponse;
 import org.junit.BeforeClass;
+import org.junit.Ignore;
 import org.junit.Test;
 
 
@@ -223,6 +224,28 @@ public class DispatchClientServerTest ex
         
     }
     @Test
+    @Ignore
+    public void testSOAPMessageInvokeToOneWay() throws Exception {
+        SOAPService service = new SOAPService(null, SERVICE_NAME);
+        service.addPort(PORT_NAME, SOAPBinding.SOAP11HTTP_BINDING,
+                        "http://localhost:" + greeterPort 
+                        + "/SOAPDispatchService/SoapDispatchPort");
+        assertNotNull(service);
+        
+        Dispatch<SOAPMessage> disp = service
+            .createDispatch(PORT_NAME, SOAPMessage.class, Service.Mode.MESSAGE);
+
+        //message is "one way", but there really isn't a way for us to know that
+        //as we don't have a wsdl or other source of operation information to
+        //compare the payload to.
+        InputStream is1 = getClass().getResourceAsStream("resources/GreetMe1WDocLiteralReq2.xml");
+        SOAPMessage soapReqMsg1 = MessageFactory.newInstance().createMessage(null, is1);
+        assertNotNull(soapReqMsg1);
+        
+        //we'll just call invoke
+        disp.invoke(soapReqMsg1);
+    }
+    @Test
     public void testSOAPMessage() throws Exception {
 
         URL wsdl = getClass().getResource("/wsdl/hello_world.wsdl");
@@ -250,7 +273,7 @@ public class DispatchClientServerTest ex
             .getTextContent().trim());
 
         // Test oneway
-        InputStream is1 = getClass().getResourceAsStream("resources/GreetMeDocLiteralReq1.xml");
+        InputStream is1 = getClass().getResourceAsStream("resources/GreetMe1WDocLiteralReq2.xml");
         SOAPMessage soapReqMsg1 = MessageFactory.newInstance().createMessage(null, is1);
         assertNotNull(soapReqMsg1);
         disp.invokeOneWay(soapReqMsg1);



Mime
View raw message