axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kei...@apache.org
Subject svn commit: r607559 - /webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLBuilder.java
Date Sun, 30 Dec 2007 16:51:41 GMT
Author: keithc
Date: Sun Dec 30 08:51:39 2007
New Revision: 607559

URL: http://svn.apache.org/viewvc?rev=607559&view=rev
Log:
Fixing java2WSDL to set tns as the targetnamespaceprefix if its null


Modified:
    webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLBuilder.java

Modified: webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLBuilder.java?rev=607559&r1=607558&r2=607559&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLBuilder.java
Sun Dec 30 08:51:39 2007
@@ -158,6 +158,9 @@
     }
 
     public String getTargetNamespacePrefix() {
+        if (targetNamespacePrefix == null) {
+            this.targetNamespacePrefix = TARGETNAMESPACE_PREFIX;
+        }
         return targetNamespacePrefix;
     }
 
@@ -235,7 +238,7 @@
                                                             classLoader,
                                                             schemaGenerator, service);
         schemaGenerator.setAxisService(axisService);
-        axisService.setTargetNamespacePrefix(targetNamespacePrefix);
+        axisService.setTargetNamespacePrefix(getTargetNamespacePrefix());
         axisService.setSchemaTargetNamespace(getSchemaTargetNamespace());
         axisService.setSchematargetNamespacePrefix(getSchemaTargetNamespacePrefix());
         String uri = locationUri;



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message