Copy link to clipboard
Copied
quote:
You need to ensure that the CookieContainer property of the proxy class you're using to call the web service has been set to a valid CookieContainer object. This is how the EFM Community web service API maintains state between method invocations. If this property isn't set, you'll be able to login but the very next function you attempt to call will result in an "Invalid Access" exception because--as far as EFM Community is concerned--you haven't logged in.
Here's how this is done in C#:
using System;using System.Collections.Generic;using System.Net;namespace exampleapp{ class Program { static void Main(string[] args) { ProjectData projectData = new ProjectData(); projectData.CookieContainer = new CookieContainer(); projectData.Login("myuserid", "mypassword"); ...
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied