private void TestGetPersonMediumByPtal() { Console.WriteLine("# TestGetPersonMediumByPtal"); var person = MediumClient().GetPerson( Ptal.Create("300408559") ); PrintPerson(person); }
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) )); }