You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by du...@apache.org on 2005/06/07 13:40:34 UTC
cvs commit: ws-axis/c/src/soap Attribute.cpp Attribute.h
dushshantha 2005/06/07 04:40:34
Modified: c/src/soap Attribute.cpp Attribute.h
Log:
Fix to the issue AXISCPP-573
Revision Changes Path
1.38 +35 -1 ws-axis/c/src/soap/Attribute.cpp
Index: Attribute.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/Attribute.cpp,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- Attribute.cpp 23 Mar 2005 15:44:59 -0000 1.37
+++ Attribute.cpp 7 Jun 2005 11:40:34 -0000 1.38
@@ -109,7 +109,41 @@
{
uri="";
}
- m_uri= uri;
+
+ /**
+ * sets the prefix according to the URI
+ */
+
+ if(m_prefix != "")
+ {
+
+
+ printf("%s\n","not empty");
+ bool bPrefixFound = false;
+ list<Namespace*>::iterator itCurrNamespaceDecl = m_namespaceDecls.begin();
+
+ while( itCurrNamespaceDecl != m_namespaceDecls.end() && !bPrefixFound)
+ {
+ if( !(bPrefixFound = !strcmp( (*itCurrNamespaceDecl)->getURI(), uri)))
+ {
+ itCurrNamespaceDecl++;
+ }
+ }
+
+
+ if( bPrefixFound)
+ {
+ printf("%s\n","prefix found");
+ setPrefix((*itCurrNamespaceDecl)->getPrefix());
+
+ }
+ else
+ {
+ setPrefix(NULL);
+ }
+ }
+
+ m_uri= uri;
return AXIS_SUCCESS;
}
1.16 +9 -0 ws-axis/c/src/soap/Attribute.h
Index: Attribute.h
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/Attribute.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- Attribute.h 23 Mar 2005 15:44:59 -0000 1.15
+++ Attribute.h 7 Jun 2005 11:40:34 -0000 1.16
@@ -26,6 +26,8 @@
#include <axis/GDefine.hpp>
#include <axis/IAttribute.hpp>
+#include <axis/INamespace.hpp>
+#include "Namespace.h"
#include <list>
#include <string>
@@ -79,6 +81,13 @@
AxisString m_uri;
AxisString m_value;
list<const char*> m_PrefixList;
+
+ /**
+ *Dushshantha:
+ *namespace declaration list
+ */
+
+ list<Namespace*> m_namespaceDecls;
};
AXIS_CPP_NAMESPACE_END