static void print(ProvisioningResponse response)
 {
     Console.WriteLine("Response status: "+response.Status);
     if (!response.IsSuccess())
     {
         Console.WriteLine("         reason: "+response.Reason);
         Console.WriteLine("         result: "+response.Result);
         Console.WriteLine("         message: "+response.ExtendedMessage);
     }
 }
        private ProvisioningResponse ProcessResponse( BaseProvisioningAction action, string responseXml )
        {
            ProvisioningResponse response = new ProvisioningResponse( responseXml );
            action.Response = response;

            XmlDocument doc = new XmlDocument();
            doc.LoadXml( responseXml );

            XmlNamespaceManager ns = new XmlNamespaceManager( doc.NameTable );
            ns.AddNamespace( "hs", "google:accounts:rest:protocol" );

            if ( response.IsSuccess() )
                action.ProcessResponseXml( doc, ns );

            return response;
        }