Using Web Services with MATLAB Cookie issue
Ältere Kommentare anzeigen
Hi,
I am trying to use the web service http://www.cadec-online.com/API.asmx, but the service uses cookies for authentication and sessions.
Matlab documentation does not say anything about cookies.
Is there anyway to tell Matlab to use cookies?
I am able to use this service in c# really easy:
API.API api = new API.API();
api.CookieContainer = new System.Net.CookieContainer();
api.LogIn("user", "pass");
String[][] ls = api.Laminae();
foreach (String[] l in ls)
{
Console.WriteLine(l[0] + " " + l[1]);
}
api.Logout();
Console.ReadLine();
Note the api.CookieContainer = new System.Net.CookieContainer();, this is the way to tell c# to accept cookies. Is there a way to do that in Matlab?
Best
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 16 Feb. 2012
0 Stimmen
1 Kommentar
Fernando
am 16 Feb. 2012
Kategorien
Mehr zu Call Web Services from MATLAB Using HTTP finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!