axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r527219 - /webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/EndpointReference.java
Date Tue, 10 Apr 2007 17:52:50 GMT
Author: dug
Date: Tue Apr 10 10:52:50 2007
New Revision: 527219

URL: http://svn.apache.org/viewvc?view=rev&rev=527219
Log:
fix missing prefix

Modified:
    webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/EndpointReference.java

Modified: webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/EndpointReference.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/EndpointReference.java?view=diff&rev=527219&r1=527218&r2=527219
==============================================================================
--- webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/EndpointReference.java
(original)
+++ webservices/axis/trunk/proposals/dug/java/src/org/apache/axis/wsa/EndpointReference.java
Tue Apr 10 10:52:50 2007
@@ -401,9 +401,10 @@
     DocumentBuilder db  = dbf.newDocumentBuilder();
     Document        doc = db.newDocument();
     Element         elem = doc.createElementNS( ns, name );
-    if ( prefix == null ) prefix = "t" ;
-    // if ( prefix != null ) 
-    elem.setPrefix( prefix );
+    if ( prefix != null ) 
+      elem.setPrefix( prefix );
+    else
+      elem.setPrefix( "t" );
 
     if ( value != null )
       elem.appendChild( doc.createTextNode( value ) );
@@ -454,6 +455,8 @@
     Element         elem = doc.createElementNS( ns, name );
     if ( prefix != null ) 
       elem.setPrefix( prefix );
+    else 
+      elem.setPrefix( "t" );
 
     if ( value != null )
       elem.appendChild( doc.createTextNode( value ) );



---------------------------------------------------------------------
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