Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- private static void Main()
- {
- DoIcpDeclaration();
- }
- private static void DoIcpDeclaration()
- {
- Console.WriteLine("DoIcpDeclaration");
- // Create the declaration
- var abcLeveringen = new List<Levering>
- {
- new Levering {BtwNummer = "DK07565643", Bedrag = "150"},
- new Levering {BtwNummer = "DE4544924DE02", Bedrag = "12"}
- };
- var icpRequest = new AddIcpDeclarationRequest
- {
- Gebruikersnaam = "test",
- GebruikersGuid = "test",
- BelanghebbendeNummer = "100010001B01",
- Periode = "M201311",
- Contactpersoon = "Jan Modaal",
- Straat = "Nachtegaallaan",
- Huisnummer = "1",
- Postcode = "5801AB",
- Woonplaats = "Venray",
- Telefoonnummer = "011-487415",
- AbcLeveringen = abcLeveringen.ToArray()
- };
- using (var declarationClient = new DeclarationServiceClient()) {
- // Make the call
- var response = declarationClient.SendICP(icpRequest);
- // Display the results
- if (response.Success)
- Console.WriteLine("Succes! TraceId: {0}", response.TraceId);
- else
- Console.WriteLine("Error! {0}: {1}", response.ErrorCode, response.ErrorMessage);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment