Search the web
Sign In
New User? Sign Up
ydn-dotnet · CLOSED: Yahoo! .NET Developer Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Not Allowed in GetUserData call   Message List  
Reply | Forward Message #149 of 263 |
Re: Not Allowed in GetUserData call

Sorry, it's my fault

when I replace the Authentication cookies with correct format (without
"Y="), it works!!!!

thanks everybody, hope this useful to you all :)

--- In ydn-dotnet@yahoogroups.com, "huge" <huge.huang@...> wrote:
>
> Dear guys
> Now I could get a token in endpoint page.
> My code described below
>
> Yahoo.Authentication auth = new Yahoo.Authentication(AppID, Secret);
> auth.Token = token;
> auth.UpdateCredentials();
>
> ymws ymwsInstance = new ymws();
> ymwsInstance.Url =
> String.Concat("http://mail.yahooapis.com/ws/mail/v1.1/soap?appid=",
> auth.ApplicationId, "&wssid=", auth.WssId);
> ymwsInstance.CookieContainer = new CookieContainer();
> ymwsInstance.CookieContainer.Add(new
> Uri("http://mail.yahooapis.com/"), new Cookie("Y",
> auth.Cookies.Trim().Substring(2)));
> try {
> GetUserDataResponse userData = ymwsInstance.GetUserData(new
> GetUserData());
> }catch (Exception ex) {
> Response.Write(ex.Message);
> }
>
> but ymwsInstance.GetUserData got an error, I just can see the message
> is Not allowed but without other hint, and the StackTrack list below
>
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMess\
age
> message, WebResponse response, Stream responseStream, Boolean asyncCall)
> System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
> methodName, Object[] parameters)
> com.yahooapis.mail.ymws.GetUserData(GetUserData GetUserData1) at
> c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> Files\root\26676eb7\92c7e946\App_WebReferences.rofz3kg8.0.cs: Line 159
> _Default.Page_Load(Object sender, EventArgs e) at
> c:\Inetpub\wwwroot\Default.aspx.cs: Line 76
> is there anyone could be kind enough to tell me how to solve this?
> thanks wholeheartedly
>





Tue Mar 25, 2008 1:05 pm

huge03132003
Offline Offline
Send Email Send Email

Forward
Message #149 of 263 |
Expand Messages Author Sort by Date

Dear guys Now I could get a token in endpoint page. My code described below Yahoo.Authentication auth = new Yahoo.Authentication(AppID, Secret); auth.Token =...
huge
huge03132003
Offline Send Email
Mar 25, 2008
10:09 am

Sorry, it's my fault when I replace the Authentication cookies with correct format (without "Y="), it works!!!! thanks everybody, hope this useful to you all...
huge
huge03132003
Offline Send Email
Mar 25, 2008
1:08 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help