示例#1
0
        private void TestGetPersonMediumByPtal()
        {
            Console.WriteLine("# TestGetPersonMediumByPtal");
            var person = MediumClient().GetPerson(
                Ptal.Create("300408559")
                );

            PrintPerson(person);
        }
示例#2
0
        public PersonSmall GetPerson(Ptal ptal)
        {
            Util.RequireNonNull(ptal, "ptal");
            var method = new Eu.Xroad.UsFolkV3.Producer.GetPersonSmallByPtal()
            {
                request = ptal.Value
            };
            var request = new Eu.Xroad.UsFolkV3.Producer.GetPersonSmallByPtalRequest()
            {
                client               = clientHeader,
                service              = ServiceHeader(method.GetType()),
                userId               = userIdHeader,
                id                   = IdHeader(),
                issue                = issueHeader,
                protocolVersion      = protocolVersionHeader,
                GetPersonSmallByPtal = method
            };

            return(Call(
                       () => webService.GetPersonSmallByPtal(request),
                       r => PersonMapper.Map(r.GetPersonSmallByPtalResponse)
                       ));
        }