static void GetStampTest(string username, string password) { var cli = new FelClient(username, password); var tfd = cli.GetStamp("AAA010101AAA", "706EE409-7E57-7E57-7E57-6BA3AA1E2A36"); Console.WriteLine(tfd.ToString()); Console.WriteLine(tfd.ToXmlString()); }
static void CancelTest(string username, string password) { var cli = new FelClient(username, password); cli.PrivateKey = Convert.ToBase64String(File.ReadAllBytes(CSD_PRIVATE_KEY_FILE)); cli.PrivateKeyPassword = CSD_PRIVATE_KEY_PWD; var ret = cli.Cancel("AAA010101AAA", "706EE409-7E57-7E57-7E57-6BA3AA1E2A36"); Console.WriteLine("Cancel: {0}", ret); }
static void StampTest(string username, string password) { var cfd = CreateCFD(); var cli = new FelClient(username, password); AddItems(cfd, "Producto", 3); cfd.Sign(File.ReadAllBytes(CSD_PRIVATE_KEY_FILE), Encoding.UTF8.GetBytes(CSD_PRIVATE_KEY_PWD)); var tfd = cli.Stamp("WS01", cfd); Console.WriteLine(tfd.ToXmlString()); cfd.Complemento = new List <object>(); cfd.Complemento.Add(tfd); Console.WriteLine(cfd.ToXmlString()); Console.WriteLine(cfd.ToString()); }