When trying to do a action using ll webservice i get the following error : "Could not login with cookie " .
I'm able to get a session token but that's it.
AuthenticationClient authClient = new AuthenticationClient ();
PhysicalObjectsService. OTAuthentication ssOTAuth = new PhysicalObjectsService. OTAuthentication ();
try
{
string username = "Admin" ;
string password = "Adminpwd" ;
string token = authClient.AuthenticateUser(username, password);
if (token != null )
ssOTAuth.AuthenticationToken = token;
else
throw new Exception ( "Problem obtaining a valid authentication token." );
authClient.Close();
}
catch ( Exception et)
{
Console .WriteLine( "Error: " + et.Message);
authClient.Close();
return ;
}
PhysicalObjectsClient loClient = new PhysicalObjectsClient ();
PhysicalObjectsService. PhysObjBoxingInfo t = new PhysObjBoxingInfo ();
t.BoxID = 2020326;
t.UpdateLocation = true ;
t.UpdateRSI = true ;
t.UpdateStatus = true ;
int [] filesToRemove = new int [] {2033121 };
bool removedFromBox = loClient.PhysObjRemoveFromBox(ssOTAuth, filesToRemove, 2020326);