(file) Return to CIMOperationResponseDecoder.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Client

Diff for /pegasus/src/Pegasus/Client/CIMOperationResponseDecoder.cpp between version 1.36 and 1.37

version 1.36, 2003/03/13 23:09:55 version 1.37, 2003/03/20 00:29:46
Line 480 
Line 480 
     }     }
     else     else
     {     {
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMCreateClassResponseMessage(         return(new CIMCreateClassResponseMessage(
             messageId,             messageId,
Line 506 
Line 509 
             QueueIdStack(),             QueueIdStack(),
             CIMClass()));             CIMClass()));
     }     }
     else if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))      else if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
     {     {
         CIMClass cimClass;         CIMClass cimClass;
  
         if (!XmlReader::getClassElement(parser, cimClass))          if ((entry.type == XmlEntry::EMPTY_TAG) ||
               !XmlReader::getClassElement(parser, cimClass))
           {
             throw XmlValidationError(parser.getLine(),"expected CLASS element");             throw XmlValidationError(parser.getLine(),"expected CLASS element");
           }
  
         XmlReader::testEndTag(parser, "IRETURNVALUE");          XmlReader::expectEndTag(parser, "IRETURNVALUE");
  
         return(new CIMGetClassResponseMessage(         return(new CIMGetClassResponseMessage(
             messageId,             messageId,
Line 543 
Line 549 
     }     }
     else     else
     {     {
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMModifyClassResponseMessage(         return(new CIMModifyClassResponseMessage(
             messageId,             messageId,
Line 573 
Line 582 
     {     {
         Array<CIMName> classNames;         Array<CIMName> classNames;
  
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             CIMName className;             CIMName className;
  
Line 582 
Line 593 
  
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMEnumerateClassNamesResponseMessage(         return(new CIMEnumerateClassNamesResponseMessage(
             messageId,             messageId,
Line 609 
Line 621 
     {     {
         Array<CIMClass> cimClasses;         Array<CIMClass> cimClasses;
  
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             CIMClass cimClass;             CIMClass cimClass;
  
Line 618 
Line 632 
  
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMEnumerateClassesResponseMessage(         return(new CIMEnumerateClassesResponseMessage(
             messageId,             messageId,
Line 642 
Line 657 
     }     }
     else     else
     {     {
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMDeleteClassResponseMessage(         return(new CIMDeleteClassResponseMessage(
             messageId,             messageId,
Line 673 
Line 691 
         CIMObjectPath instanceName;         CIMObjectPath instanceName;
         XmlReader::getInstanceNameElement(parser, instanceName);         XmlReader::getInstanceNameElement(parser, instanceName);
  
         XmlReader::testEndTag(parser, "IRETURNVALUE");          XmlReader::expectEndTag(parser, "IRETURNVALUE");
  
         return(new CIMCreateInstanceResponseMessage(         return(new CIMCreateInstanceResponseMessage(
             messageId,             messageId,
Line 702 
Line 720 
             QueueIdStack(),             QueueIdStack(),
             CIMInstance()));             CIMInstance()));
     }     }
     else if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))      else if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
     {     {
         CIMInstance cimInstance;         CIMInstance cimInstance;
  
         if (!XmlReader::getInstanceElement(parser, cimInstance))          if ((entry.type == XmlEntry::EMPTY_TAG) ||
               !XmlReader::getInstanceElement(parser, cimInstance))
         {         {
             throw XmlValidationError(             throw XmlValidationError(
                 parser.getLine(), "expected INSTANCE element");                 parser.getLine(), "expected INSTANCE element");
         }         }
  
         XmlReader::testEndTag(parser, "IRETURNVALUE");          XmlReader::expectEndTag(parser, "IRETURNVALUE");
  
         return(new CIMGetInstanceResponseMessage(         return(new CIMGetInstanceResponseMessage(
             messageId,             messageId,
Line 742 
Line 761 
     }     }
     else     else
     {     {
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMModifyInstanceResponseMessage(         return(new CIMModifyInstanceResponseMessage(
             messageId,             messageId,
Line 772 
Line 794 
     {     {
         Array<CIMObjectPath> instanceNames;         Array<CIMObjectPath> instanceNames;
  
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             String className;             String className;
             Array<CIMKeyBinding> keyBindings;             Array<CIMKeyBinding> keyBindings;
Line 790 
Line 814 
  
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMEnumerateInstanceNamesResponseMessage(         return(new CIMEnumerateInstanceNamesResponseMessage(
             messageId,             messageId,
Line 817 
Line 842 
     {     {
         Array<CIMInstance> namedInstances;         Array<CIMInstance> namedInstances;
  
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             CIMInstance namedInstance;             CIMInstance namedInstance;
  
             while (XmlReader::getNamedInstanceElement(parser, namedInstance))                  while (XmlReader::getNamedInstanceElement(
                              parser, namedInstance))
                   {
                 namedInstances.append(namedInstance);                 namedInstances.append(namedInstance);
                   }
  
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMEnumerateInstancesResponseMessage(         return(new CIMEnumerateInstancesResponseMessage(
             messageId,             messageId,
Line 850 
Line 881 
     }     }
     else     else
     {     {
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMDeleteInstanceResponseMessage(         return(new CIMDeleteInstanceResponseMessage(
             messageId,             messageId,
Line 880 
Line 914 
     {     {
         CIMValue cimValue(CIMTYPE_STRING, false);         CIMValue cimValue(CIMTYPE_STRING, false);
  
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             if (!XmlReader::getPropertyValue(parser, cimValue))             if (!XmlReader::getPropertyValue(parser, cimValue))
             {             {
Line 889 
Line 925 
  
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
         else         else
         {         {
             // No value given; just return a null String value             // No value given; just return a null String value
Line 917 
Line 954 
     }     }
     else     else
     {     {
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMSetPropertyResponseMessage(         return(new CIMSetPropertyResponseMessage(
             messageId,             messageId,
Line 944 
Line 984 
     }     }
     else     else
     {     {
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMSetQualifierResponseMessage(         return(new CIMSetQualifierResponseMessage(
             messageId,             messageId,
Line 975 
Line 1018 
         CIMQualifierDecl qualifierDecl;         CIMQualifierDecl qualifierDecl;
         XmlReader::getQualifierDeclElement(parser, qualifierDecl);         XmlReader::getQualifierDeclElement(parser, qualifierDecl);
  
         XmlReader::testEndTag(parser, "IRETURNVALUE");          XmlReader::expectEndTag(parser, "IRETURNVALUE");
  
         return(new CIMGetQualifierResponseMessage(         return(new CIMGetQualifierResponseMessage(
             messageId,             messageId,
Line 1008 
Line 1051 
     {     {
         Array<CIMQualifierDecl> qualifierDecls;         Array<CIMQualifierDecl> qualifierDecls;
  
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             CIMQualifierDecl qualifierDecl;             CIMQualifierDecl qualifierDecl;
  
             while (XmlReader::getQualifierDeclElement(parser, qualifierDecl))                  while (XmlReader::getQualifierDeclElement(
                              parser, qualifierDecl))
                   {
                 qualifierDecls.append(qualifierDecl);                 qualifierDecls.append(qualifierDecl);
                   }
  
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMEnumerateQualifiersResponseMessage(         return(new CIMEnumerateQualifiersResponseMessage(
             messageId,             messageId,
Line 1041 
Line 1090 
     }     }
     else     else
     {     {
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMDeleteQualifierResponseMessage(         return(new CIMDeleteQualifierResponseMessage(
             messageId,             messageId,
Line 1073 
Line 1125 
     {     {
         Array<CIMObjectPath> objectPaths;         Array<CIMObjectPath> objectPaths;
  
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             CIMObjectPath objectPath;             CIMObjectPath objectPath;
  
Line 1082 
Line 1136 
  
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMReferenceNamesResponseMessage(         return(new CIMReferenceNamesResponseMessage(
             messageId,             messageId,
Line 1109 
Line 1164 
     {     {
         Array<CIMObject> objectWithPathArray;         Array<CIMObject> objectWithPathArray;
  
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             CIMObject objectWithPath;             CIMObject objectWithPath;
  
             while (XmlReader::getValueObjectWithPathElement(parser, objectWithPath))                  while (XmlReader::getValueObjectWithPathElement(
                              parser, objectWithPath))
                   {
                 objectWithPathArray.append(objectWithPath);                 objectWithPathArray.append(objectWithPath);
                   }
  
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMReferencesResponseMessage(         return(new CIMReferencesResponseMessage(
             messageId,             messageId,
Line 1145 
Line 1206 
     {     {
         Array<CIMObjectPath> objectPaths;         Array<CIMObjectPath> objectPaths;
  
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             CIMObjectPath objectPath;             CIMObjectPath objectPath;
  
Line 1154 
Line 1217 
  
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMAssociatorNamesResponseMessage(         return(new CIMAssociatorNamesResponseMessage(
             messageId,             messageId,
Line 1181 
Line 1245 
     {     {
         Array<CIMObject> objectWithPathArray;         Array<CIMObject> objectWithPathArray;
  
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             CIMObject objectWithPath;             CIMObject objectWithPath;
  
             while (XmlReader::getValueObjectWithPathElement(parser, objectWithPath))                  while (XmlReader::getValueObjectWithPathElement(
                              parser, objectWithPath))
                   {
                 objectWithPathArray.append(objectWithPath);                 objectWithPathArray.append(objectWithPath);
                   }
  
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMAssociatorsResponseMessage(         return(new CIMAssociatorsResponseMessage(
             messageId,             messageId,
Line 1217 
Line 1287 
     {     {
         Array<CIMObject> objectWithPathArray;         Array<CIMObject> objectWithPathArray;
  
         if (XmlReader::testStartTag(parser, entry, "IRETURNVALUE"))          if (XmlReader::testStartTagOrEmptyTag(parser, entry, "IRETURNVALUE"))
           {
               if (entry.type != XmlEntry::EMPTY_TAG)
         {         {
             XmlReader::getObjectArray(parser, objectWithPathArray);             XmlReader::getObjectArray(parser, objectWithPathArray);
  
             XmlReader::expectEndTag(parser, "IRETURNVALUE");             XmlReader::expectEndTag(parser, "IRETURNVALUE");
         }         }
           }
  
         return(new CIMExecQueryResponseMessage(         return(new CIMExecQueryResponseMessage(
             messageId,             messageId,


Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2