Windows Azure Platform Developer Center >
Azure Forums
>
Live Framework
>
Live Service - Msn Contact List ASP sample
Live Service - Msn Contact List ASP sample
- Hi,Classic asp and "Live Service - MSN Contact List" I want to receive data. "Live service" is not about the classic asp example I can not find the solution. I'm getting the error code, error description could not reach the solution, but it still researched. I wonder where I would make mistakes.Sample code and error output ...Regards.<%ConsentToken = URLDecode(Request("ConsentToken"))deltData = Split(ConsentToken,"=")lidData = Split(ConsentToken,"=")delt = Replace(deltData(1),"&skey","")lid = lidData(5)Set xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")xmlHTTP.open "GET", "https://livecontacts.services.live.com/users/@L@"& lid &"/rest/LiveContacts/Contacts", false, "","utf-8"xmlHTTP.setRequestHeader "Content-Type", "application/xml; charset=utf-8"xmlHTTP.SetRequestHeader "Authorization", "DelegatedToken dt="& delt &""xmlHTTP.sendstrStatus = xmlHTTP.StatusstatusText = xmlHTTP.statusText%>Response:4 (status)401--------------------'Error Codes.'http://msdn.microsoft.com/en-us/library/bb463952.aspx
401
Unauthorized
The caller is not authorized to perform this action on the target address book.
401
Unauthorized
Invalid CallerID, Missing CallerID value or the Family Safety Assertion failed.
All Replies
- Hi,Classic asp and "Live Service - MSN Contact List" I want to receive data. "Live service" is not about the classic asp example I can not find the solution. I'm getting the error code, error description could not reach the solution, but it still researched. I wonder where I would make mistakes.Sample code and error output ...Regards.<%ConsentToken = URLDecode(Request("ConsentToken"))deltData = Split(ConsentToken,"=")lidData = Split(ConsentToken,"=")delt = Replace(deltData(1),"&skey","")lid = lidData(5)Set xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")xmlHTTP.open "GET", "https://livecontacts.services.live.com/users/@L@"& lid &"/rest/LiveContacts/Contacts", false, "","utf-8"xmlHTTP.setRequestHeader "Content-Type", "application/xml; charset=utf-8"xmlHTTP.SetRequestHeader "Authorization", "DelegatedToken dt="& delt &""xmlHTTP.sendstrStatus = xmlHTTP.StatusstatusText = xmlHTTP.statusText%>Response:4 (status)401--------------------'Error Codes.'http://msdn.microsoft.com/en-us/library/bb463952.aspx
401
Unauthorized
The caller is not authorized to perform this action on the target address book.
401
Unauthorized
Invalid CallerID, Missing CallerID value or the Family Safety Assertion failed.
- Helpful Votes: 0 Views: 191 :(
- Marked As Answer byYi-Lun LuoMSFT, ModeratorWednesday, September 16, 2009 10:44 AM
- Unmarked As Answer byYi-Lun LuoMSFT, ModeratorTuesday, October 20, 2009 3:26 AM


