cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r515965 - in /incubator/cxf/trunk/tools2/wsdlto: frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ParameterProcessor.java test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
Date Thu, 08 Mar 2007 08:35:43 GMT
Author: ema
Date: Thu Mar  8 00:35:42 2007
New Revision: 515965

URL: http://svn.apache.org/viewvc?view=rev&rev=515965
Log:
Fixed issue with empty targetnamespace in WebParameter Annotation

Modified:
    incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ParameterProcessor.java
    incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java

Modified: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ParameterProcessor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ParameterProcessor.java?view=diff&rev=515965&r1=515964&r2=515965
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ParameterProcessor.java
(original)
+++ incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ParameterProcessor.java
Thu Mar  8 00:35:42 2007
@@ -296,7 +296,7 @@
         
         
         String targetNamespace = item.getNamespaceURI();
-        if (targetNamespace == null) {
+        if ("".equals(targetNamespace)) {
             targetNamespace = ProcessorUtil.resolvePartNamespace(part);
         }
 
@@ -320,9 +320,9 @@
     }
 
     private JavaReturn getReturnFromQName(QName element, MessagePartInfo part) {
+       
         String fullJavaName = "";
         String simpleJavaName = "";
-         
         fullJavaName = this.dataBinding.getWrappedElementType(part.getElementQName(), element);
         simpleJavaName = fullJavaName;
         

Modified: incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java?view=diff&rev=515965&r1=515964&r2=515965
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
(original)
+++ incubator/cxf/trunk/tools2/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
Thu Mar  8 00:35:42 2007
@@ -786,6 +786,13 @@
         Method method = clz.getMethod("queryEndpoints", new Class[] {paraClass});
         WebParam webParamAnn = AnnotationUtil.getWebParam(method, "select");
         assertEquals("http://apache.org/locator/query", webParamAnn.targetNamespace());
+        
+        method = clz.getMethod("deregisterPeerManager", new Class[] {String.class});
+        webParamAnn = AnnotationUtil.getWebParam(method, "node_id");
+        assertEquals("http://apache.org/locator/types", webParamAnn.targetNamespace());
+        
+        
+        
     }
     
     public void testWebFaultAnnotaion() throws Exception {



Mime
View raw message