protected void Page_Load(object sender, EventArgs e) { ILinkedInService service = _linkedInService; try { Uri requestUri = new Uri(Constants.TestApiStandardProfileRequest_Uri); HttpHeader httpHeader = new HttpHeader { Name = Constants.TestApiStandardProfileRequest_HttpHeader_Name, Value = Constants.TestApiStandardProfileRequest_HttpHeader_Value }; Person person = service.GetOutOfNetworkProfile(requestUri, new List <HttpHeader> { httpHeader }); console.Text += Utilities.SerializeToXml <Person>(person); } catch (LinkedInException lie) { console.Text += lie.Message; } }