/**
  * Invokes the ability to pass PHP objects in addition to basic native types such as int and string
  * @param string The type of object marshalling to be invoked: either anonymous, named, or serialized
  */
 function setObjectMarshalling($type)
 {
     $type = strtolower($type);
     switch ($type) {
         case DOM_XMLRPC_OBJECT_MARSHALLING_ANONYMOUS:
             //default
         //default
         case DOM_XMLRPC_OBJECT_MARSHALLING_NAMED:
         case DOM_XMLRPC_OBJECT_MARSHALLING_SERIALIZED:
             $this->objectMarshalling = $type;
             break;
         default:
             XMLRPC_Client_Exception::raiseException(XMLRPC_CLIENT_RESPONSE_TYPE_ERR, 'Invalid object marshalling type: ' . $type);
     }
 }
 /**
  * Sets the method response type to the specified type
  * @param array The requested method response type
  */
 function setResponseType($type)
 {
     $type = strtolower($type);
     switch ($type) {
         case DOM_XMLRPC_RESPONSE_TYPE_ARRAY:
         case DOM_XMLRPC_RESPONSE_TYPE_XML_DOMIT:
         case DOM_XMLRPC_RESPONSE_TYPE_XML_DOMIT_LITE:
         case DOM_XMLRPC_RESPONSE_TYPE_XML_DOMXML:
         case DOM_XMLRPC_RESPONSE_TYPE_STRING:
             $this->responseType = $type;
             break;
         default:
             XMLRPC_Client_Exception::raiseException(XMLRPC_CLIENT_RESPONSE_TYPE_ERR, 'Invalid response type: ' . $type);
     }
 }