public void OverwriteCustomizationSpec(CustomizationSpecItem item)
 {
     try
     {
         OverwriteCustomizationSpecRequestType overwriteCustomizationSpecRequestType = new OverwriteCustomizationSpecRequestType();
         overwriteCustomizationSpecRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef);
         overwriteCustomizationSpecRequestType.item  = (VimApi_65.CustomizationSpecItem)VIConvert.ToWsdlType(item);
         this.VimServiceProxy.OverwriteCustomizationSpec(new OverwriteCustomizationSpecRequest(overwriteCustomizationSpecRequestType));
     }
     catch (FaultException ex)
     {
         throw FaultUtility.HandleFault(ex);
     }
 }
        public string CustomizationSpecItemToXml(CustomizationSpecItem item)
        {
            string returnval;

            try
            {
                CustomizationSpecItemToXmlRequestType customizationSpecItemToXmlRequestType = new CustomizationSpecItemToXmlRequestType();
                customizationSpecItemToXmlRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef);
                customizationSpecItemToXmlRequestType.item  = (VimApi_65.CustomizationSpecItem)VIConvert.ToWsdlType(item);
                returnval = this.VimServiceProxy.CustomizationSpecItemToXml(new CustomizationSpecItemToXmlRequest(customizationSpecItemToXmlRequestType)).CustomizationSpecItemToXmlResponse.returnval;
            }
            catch (FaultException ex)
            {
                throw FaultUtility.HandleFault(ex);
            }
            return(returnval);
        }