public static string GetDoiRegResult(String fileName, String userName, String password) { StringBuilder sb = new StringBuilder(); UploadFile uploadFile = new UploadFile(); DoiRegResult result = uploadFile.getDoiRegResult(fileName, userName, password); return(result.state); }
//获取DOI注册结果 public static string GetDoiRegResult(String fileName, String userName, String password, String RegResultSavePath) { StringBuilder sb = new StringBuilder(); UploadFile uploadFile = new UploadFile(); DoiRegResult result = uploadFile.getDoiRegResult(fileName, userName, password); //保存注册结果 if (result.state == "已完成") { XElement root = XElement.Load(result.resultFileUrl.Replace("Successful.log", ""), LoadOptions.SetLineInfo);//加载XML文档 root.Save(RegResultSavePath); } return(result.state); }