I am connecting to a web service, where first method initializes search and then another one gets result. I am able to connect to it and initialize the search, but when I call the update method, I don’t get any result. It seems like the service cannot recognize, that I am the same person who initialized the search. Any idea how to get this working?
P.S: Other methods, that don”t need initialization work great.
Simplified code looks like:
Service service = new Service();
service.StartSearch(param1, param2);
string result = service.UpdateResults();
Results updating method has no parameters.
This is all guesswork of course, but maybe your service’s
StartSearch()method assigns something like a session cookie to you? In this case you need your cookie container to exist, and it doesn’t exist by default.Here’s the code I would try: