BUG#: 8663
authorthilo.boehm <thilo.boehm>
Tue, 15 Dec 2009 16:56:31 +0000 (16:56 +0000)
committerthilo.boehm <thilo.boehm>
Tue, 15 Dec 2009 16:56:31 +0000 (16:56 +0000)
TITLE: Poststarttests are failing if build with PEGASUS_DEFAULT_ENABLE_OOP

DESCRIPTION: The name space must not be part of the internal XML.

src/Pegasus/Common/SCMOInternalXmlEncoder.cpp
src/Pegasus/Common/SCMOInternalXmlEncoder.h

index 7e91ca64415049e7153ecb42b92dd0a49b39360e..7121861741ae15bdc9f8a28c79899b74e1381d3b 100644 (file)
@@ -165,7 +165,7 @@ void SCMOInternalXmlEncoder::_putXMLObject(
         else
         {
             // Serialize object path as XML.
-            SCMOXmlWriter::appendValueReferenceElement(buf, co, true);
+            _appendValueReferenceElement(buf, co);
             buf.append('\0');
 
             out.putUint32(buf.size());
@@ -181,4 +181,15 @@ void SCMOInternalXmlEncoder::_putXMLObject(
     }
 }
 
+void SCMOInternalXmlEncoder::_appendValueReferenceElement(
+    Buffer& out,
+    const SCMOInstance& ref)
+{
+    out << STRLIT("<VALUE.REFERENCE>\n");
+
+    SCMOXmlWriter::appendInstanceNameElement(out, ref);
+
+    out << STRLIT("</VALUE.REFERENCE>\n");
+}
+
 PEGASUS_NAMESPACE_END
index 0a4b2f8b5b7fa016c6ba6defa0de052a6810d6d5..05ad0d117af3a13c9d3021b217261e91a7988bdb 100644 (file)
@@ -44,6 +44,10 @@ public:
     static void _putXMLInstance(CIMBuffer& out, const SCMOInstance& ci);
     static void _putXMLNamedInstance(CIMBuffer& out, const SCMOInstance& ci);
     static void _putXMLObject(CIMBuffer& out, const SCMOInstance& co);
+    static void _appendValueReferenceElement(
+        Buffer& out,
+        const SCMOInstance& ref);
+
 };
 
 PEGASUS_NAMESPACE_END