cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r909083 - in /cxf/trunk: rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/ systests/databinding/src/test/java/org/apache/cxf/systest/aegis/
Date Thu, 11 Feb 2010 17:20:27 GMT
Author: dkulp
Date: Thu Feb 11 17:20:01 2010
New Revision: 909083

URL: http://svn.apache.org/viewvc?rev=909083&view=rev
Log:
[CXF-2668, CXF-2665] Wrong namespace used for the schema

Modified:
    cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/AegisDatabinding.java
    cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWs.java
    cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsImpl.java
    cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsTest.java

Modified: cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/AegisDatabinding.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/AegisDatabinding.java?rev=909083&r1=909082&r2=909083&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/AegisDatabinding.java
(original)
+++ cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/AegisDatabinding.java
Thu Feb 11 17:20:01 2010
@@ -224,7 +224,8 @@
             }
         }
 
-        aegisContext.setMappingNamespaceURI(s.getServiceInfos().get(0).getName().getNamespaceURI());
+        aegisContext.setMappingNamespaceURI(s.getServiceInfos().get(0)
+                                                .getInterface().getName().getNamespaceURI());
         aegisContext.initialize();
         this.service = s;
         s.getInInterceptors()

Modified: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWs.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWs.java?rev=909083&r1=909082&r2=909083&view=diff
==============================================================================
--- cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWs.java
(original)
+++ cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWs.java
Thu Feb 11 17:20:01 2010
@@ -30,7 +30,7 @@
 /**
  * 
  */
-@WebService(name = "AegisJaxWs")
+@WebService(name = "AegisJaxWs", targetNamespace = "http://test.cxf.apache.org")
 public interface AegisJaxWs {
     @WebMethod
     void addItem(@WebParam(name = "item")
@@ -47,4 +47,11 @@
     Item getItemByKey(@WebParam(name = "key1")
                       String key1, @WebParam(name = "key2")
                       String key2);
+    
+    @WebMethod
+    Integer getSimpleValue(@WebParam(name = "a")Integer a, @WebParam(name = "b")String b);
+    
+    //try comment this method
+    @WebMethod
+    java.util.List<String> getStringList();
 }

Modified: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsImpl.java?rev=909083&r1=909082&r2=909083&view=diff
==============================================================================
--- cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsImpl.java
(original)
+++ cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsImpl.java
Thu Feb 11 17:20:01 2010
@@ -18,7 +18,9 @@
  */
 package org.apache.cxf.systest.aegis;
 
+import java.util.Arrays;
 import java.util.HashMap;
+import java.util.List;
 import java.util.Map;
 
 import javax.jws.WebService;
@@ -52,5 +54,11 @@
     }
     
     
+    public Integer getSimpleValue(Integer a, String b) {
+        return a;
+    }
 
+    public List<String> getStringList() {
+        return Arrays.asList("a", "b", "c");
+    }
 }

Modified: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsTest.java?rev=909083&r1=909082&r2=909083&view=diff
==============================================================================
--- cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsTest.java
(original)
+++ cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsTest.java
Thu Feb 11 17:20:01 2010
@@ -19,7 +19,9 @@
 
 package org.apache.cxf.systest.aegis;
 
+import java.util.Arrays;
 import java.util.HashMap;
+import java.util.List;
 import java.util.Map;
 import java.util.Map.Entry;
 
@@ -100,5 +102,15 @@
         Assert.assertEquals(42, key2.intValue());
         Assert.assertEquals("Godzilla", item2.getData());
     }
-    
+    @Test
+    public void testGetStringList() throws Exception {
+        setupForTest(false);
+
+        Integer soucet = client.getSimpleValue(5, "aa");
+        //this one fail, when comment org.apache.cxf.systest.aegis.AegisJaxWs.getStringList
test pass
+        Assert.assertEquals(new Integer(5), soucet);
+
+        List<String> item = client.getStringList();
+        Assert.assertEquals(Arrays.asList("a", "b", "c"), item);
+    }
 }



Mime
View raw message