Problem getting Contact information using RPS token

Hi,

This is my request uri: "https://cumulus.services.live.com/XYZ@hotmail.com/LiveContacts/Contacts"

Auhtorization header:

"WLID1.0 t=\"AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAArFBAqyCwoku6Zkrw7ntoIQAAAAAWAAAAUABQAEMAUgBMACAARABhAHQAYQAAAANmAACoAAAAEAAAAIWri/qCui/5rQfG4yIAFjAAAAAABIAAAKAAAAAQAAAAfBBxmGcgWnrfoy8svBTlHRAFAACmwRJ+31iBqaDG1hiHlGWVTm9nO9FaX/wwklXk8l1YFNFQtQmNgsxeKlMJ7ZjT33I3VkCO5O2KsP44Jz4iHt8helKNbvbUCYrv0prYPOa4etfv9rym6D+6ofdrcnHvdsrhJU3nGpI2J4xBzKLocahUTNj5XkF9mnbZFlr6cHBepqPLnd0pGkWDn0YHEj2hJ8jfbs+Wnpe/v+3iD9fyEOdAIZIUP6OvP38LBsulHIN59/NQIbRaR2am91HzaxYo7nF33hTyELysT5rl1IvaQSvD+ETaeqieJhJXTSSKnSqFYzXBmkp1/V64+fp8R+u50bopOU+61YnW3hAdqZ1VW1/Rh3z+/MX6CP6UOgBcBvM0iFDKo7UO+I+uM0dOCxD9Pd7sLcFkf0l2k8NhGMMfLu6/sRFGgjXbvpeAhH2nrr0P0/hMBQcLYh8iLMMXhhRpi30j7NDG5U96q+Es0CjgKWLJnrIhio0yU8qblSOIM6iyXoTPm3Agw+h8wHAcNy1PTfd9J3xTivfUVtAdAv3twT0n8vCwTnkDuI0N+yK5NbK4PELrFYpv0KjFzN9stUevnxFDas6UXUKyfBEIAwSHCTaQDXr3FxeZeK+CSeHbDmm2RX9Po69yCyrOrHt0KUjyT1VGEMBXZlyyRrYjjoKP4GNb0QnGQ2yAwqoQAGRhSPPyYxPpe+BKsYEFYMTAoXGFE/RbZshmpaGziO/u1GHT2yXO+6Ylga342t2KTHjTLKt6C195VH0SK80RCEy0yZuOjdRn+efRz4jBX41qoJzxAVUIEFcghEGZOFIAeWyqrQQJ9d/+u/eRvoYaFHn0caCIx1lS4zWij8dxPTn7CJST0MsirESKavQA4QEtoX5spEBbnGxVTAFrNVLxgpEYLp+h+AHDugUp2Y0lcY2GrSyYyDQIN5oaU+KfZUpazu1tTfnxL+NUMWDFXHQZUuT3wbzuDCCsVqDLUJmwLfY25GWXO5uAsVvWpJxAxgSKKELlxt1wyAhMzXed21/AI5KEqQIxSNcN7OSqplEaubvgoDQq3+d2BkWnhhZw5XMVmzo7kjAnFNMm7kovjZdNPgQf0xHmR1vAq03g9P8GXACk64I1cKjMb6sPg9fKMeA0JCTc1P189tHNdl7aHh8GLLaKIQREMreB2vraq1ykEslK/n3QIpQtocsW4Qj6euRklXwTFyGEl8DA9054cmZurEyxmcTA62wh6dgHDkobB1Lg4R1qRr+SssofFGkwlZYwvBLqtPEufgqCYM82jdY3AzKFcaExWy/kkKImaVYlYA6VfkqY8sMhUlNaQbBqCKdqbrljbb9gkhvxsySXbw3v87Fk5E9FtZ2XxQ2aBM9k93yPod4hBarWdS0WICVA7S30HXJ+Inob3vRH7LeVg26rjUOMLFtyLAh/MYCzE91kqaYZ5FA+5sLipFPt2xnlE/xo9IwQ7pizt01f3PNVdFv4wWOhxJzFNs1f8upLaHeKDOkU1IhOaTZhuj5JliK8WaHU8twqvkzgiTs18J34Sv0bi1XcEb7xCTTVKZ662QE/Q6Z+B+DYT6yXjWlHfy9QjJmNsGpjS/C0PoXolr6Gbtx6sSCoQSKU+DlUelG/4oydsu4Bx+L/qRMGNsFjAtRDFlUYv5ou/KQwDNWDUlT32O9kXmcI9GIYv5hk9QERJUiF3V+MhBAs95QyrCGvjhsMCRaeCLGYGVD7HJImsS4xVdcsrI5Is2+8FssUAAAAFYrvgUUXusQoXaiNSe7lkaKl6iw=\""

I am getting a {"The remote server returned an error: (500) Internal Server Error."}

when I try to get the data.

Thanks,

Piali

[2463 byte] By [PCHOU] at [2008-3-5]
# 1

Hum... you certainly shouldn't be getting a 500, we'll have to investigate that.

One thing I can say is that the domain authentication token you submitted isn't syntactically valid. Did you edit it

before posting it?

YaronY.Goland at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Data Development...
# 2

Some more information:

Actually I go it from Idenitity.ExportAuthString

This is my request uri: "https://cumulus.services.live.com/XYZ@hotmail.com/LiveContacts/Contacts"

Also I am using RPS Auth and this is where I think I might be doing something wrong. I am getting the token using the method:

Identity.ExportAuthString, also I see that I can get a ticket using Identity.GetTicket("cumulus.services.live.com", true);

I am confused as to how I should get the auth token.

I am getting {"The remote server returned an error: (500) Internal Server Error."}

I am just looking at your video on the mix site.

Thanks for helping

PCHOU at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Data Development...
# 3

I have one more thing to add.

I am doing this on a form based application and am using Identity.Authenticate so I will not have direct access to the user password but according to MSDN the way to get the RPS token is have the password in the XML request. I think my problem is with getting a valid RPS token.

PCHOU at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Data Development...
# 4

The Authorization header you are sending looks like this:

WLID1.0 t="AQ...Kl6iw="

However, it should look like this:

WLID1.0 t="t=AQ...Kl6iw="

The 't=' should be inserted as shown above.

In general, a RPS token will be of the form t=Base64encodedValue&queryparameter1=value1&queryparameter2=value2 etc. where queryparameterN is a alphabetic character.

AshokP at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Data Development...
# 5

Yes, the first "t=" is used by us, the second "t=" is used by RPS.

YuanYuanYu-MSFT at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Data Development...
# 6

Could you clarify how I should get the rps token after I call Identity.Authenticate. Can I call ExportAuthString?

PCHOU at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Data Development...

Windows Live Developer Forums

Site Classified