axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r410850 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/addressing/EndpointReference.java
Date Thu, 01 Jun 2006 12:08:52 GMT
Author: chinthaka
Date: Thu Jun  1 05:08:52 2006
New Revision: 410850

URL: http://svn.apache.org/viewvc?rev=410850&view=rev
Log:
Fixing an issue in toOM method. Thanks Chamikara for pointing that out.

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/addressing/EndpointReference.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/addressing/EndpointReference.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/addressing/EndpointReference.java?rev=410850&r1=410849&r2=410850&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/addressing/EndpointReference.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/addressing/EndpointReference.java
Thu Jun  1 05:08:52 2006
@@ -227,20 +227,15 @@
         }
     }
 
-    public void toOM() {
-        throw new UnsupportedOperationException("Yet to be implemented !!");
-    }
-    
-    
     public OMElement toOM(String nsurl,String localName,String prefix) throws AxisFault{
         OMFactory fac = OMAbstractFactory.getOMFactory();
         if(prefix!=null){
             OMNamespace wrapNs = fac.createOMNamespace(nsurl,prefix);
             OMElement epr = fac.createOMElement(localName,wrapNs);
-            OMNamespace wsans = fac.createOMNamespace(AddressingConstants.Final.WSA_NAMESPACE,AddressingConstants.WSA_DEFAULT_PREFIX);
-            OMElement addressE = fac.createOMElement(AddressingConstants.EPR_ADDRESS,wsans,epr);
+            OMNamespace wsaNS = fac.createOMNamespace(AddressingConstants.Final.WSA_NAMESPACE,AddressingConstants.WSA_DEFAULT_PREFIX);
+            OMElement addressE = fac.createOMElement(AddressingConstants.EPR_ADDRESS,wsaNS,epr);
             addressE.setText(address);
-            OMElement metadataE = fac.createOMElement(AddressingConstants.Final.WSA_METADATA,wsans,epr);
+            OMElement metadataE = fac.createOMElement(AddressingConstants.Final.WSA_METADATA,wsaNS,epr);
 
             if(this.metaData != null){
                 Iterator metadata = this.metaData.iterator();
@@ -250,9 +245,10 @@
             }
 
             if(this.referenceParameters != null){
+                OMElement refParameterElement = fac.createOMElement(AddressingConstants.Final.WSA_METADATA,
wsaNS, epr);
                 Iterator refParms = referenceParameters.values().iterator();
                 while(refParms.hasNext()){
-                    metadataE.addChild((OMNode)refParms.next());
+                    refParameterElement.addChild((OMNode)refParms.next());
                 }
             }
             return epr;



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