Hello AJ and Qasim - I'm also now in the same boat as both of you with the Thomson Reuters Web of Knowledge webservice. I have the following code:
WokAuth.WOKMWSAuthenticateService authService = new WokAuth.WOKMWSAuthenticateService();
string auth_string = authService.authenticate();
Cookie mycookie = new Cookie("SID", auth_string, null, "http://auth.cxf.wokmws.thomsonreuters.com");
authService.CookieContainer = new CookieContainer();
authService.CookieContainer.Add(mycookie);
authService.closeSession();
I get a valid string token back from the authenticate call, but I get the following error:
Session ID cookie value cannot be null or empty string - It is required that the high level Web service client program participate in the session initialized by the server.
I'm not sure how to use fiddler to verify the HTTP header has a cookie going out and I also wondered if a firewall could be blocking cookies (I seriously doubt it). Hopefully you found a solution.
genesplitter
Member
2 Points
1 Post
Adding HTTP Request Header - Operation not supported on this platform
Jun 08, 2012 08:09 PM|LINK
Split off from http://forums.asp.net/t/1580770.aspx/1?Adding+HTTP+Request+Header+Operation+not+supported+on+this+platform
Hello AJ and Qasim - I'm also now in the same boat as both of you with the Thomson Reuters Web of Knowledge webservice. I have the following code:
WokAuth.WOKMWSAuthenticateService authService = new WokAuth.WOKMWSAuthenticateService(); string auth_string = authService.authenticate(); Cookie mycookie = new Cookie("SID", auth_string, null, "http://auth.cxf.wokmws.thomsonreuters.com"); authService.CookieContainer = new CookieContainer(); authService.CookieContainer.Add(mycookie); authService.closeSession();I get a valid string token back from the authenticate call, but I get the following error:
Session ID cookie value cannot be null or empty string - It is required that the high level Web service client program participate in the session initialized by the server.
I'm not sure how to use fiddler to verify the HTTP header has a cookie going out and I also wondered if a firewall could be blocking cookies (I seriously doubt it). Hopefully you found a solution.
Donald
Lawrence Berkeley National Laboratory