[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] Schemas, Classes and Properties...
- Subject: RE: [cobalt-developers] Schemas, Classes and Properties...
- From: "Robert Walter" <rwalter@xxxxxxxxx>
- Date: Sun Jul 28 10:59:00 2002
- Organization: Cyrius Automation Inc.
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Just an update....
I seem have located the issue. I just don't know how to solve it. I can
go directly to the cceclient command line utililty and authenticate.
After that, I can use the 'GET' command and look at my class containing
the default values as specified by the schema. However, I am unable to
use the 'SET' command. I always seem to get the '401 FAIL' error. I am
pretty sure the 'SET' command I issue is syntactically correct.
SET 1.Cyrius timeout = 5
Any help would be greatly apprectiated.
Robert Walter
rwalter@xxxxxxxxx
Cyrius Automation Inc.
78 - 678 Citadel Drive
Port Coquitlam, BC
V3C6M7 CANADA
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx] On Behalf Of Robert
Walter
Sent: Sunday, July 28, 2002 12:58 AM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: [cobalt-developers] Schemas, Classes and Properties...
Hello all....
I seem to have hit a snag. After trying unsuccessfully for a bunch of
hours, I have come to the forum for advice.
I have successfully created a new system scoped schema classs. My php
script opens the CCE connection and retrieves the values as set by the
default tag in the property definition. Everything looks good up to that
point. When I post the updated values to the php handler page, all the
values are set using the standard $cceClient->setObject method. I have
confirmed that the posted values are indeed passed to the php handler
page, and are therefore placed into the associative array used to pass
the data to the CCE system. The problem is the values never get saved to
the CCE Database. What am I doing wrong??? It just seems odd that I can
get data out of the database, just can't seem to write data back.
This is my php formHandler routine...
include("ServerScriptHelper.php");
$serverScriptHelper = new ServerScriptHelper();
$cceClient = $serverScriptHelper->getCceClient();
$cceClient->setObject("System",
array(
"enable" => $devEnable,
"model" => $devModel,
"level" => $devLevel,
"timeout" => $devTimeout),
"Cyrius");
$errors = $cceClient->errors();
print($serverScriptHelper->toHandlerHtml("/cyrius/config.php",
$errors, "cyrius-config"));
Also, Is it absolutely necessary to have a event handler that creates a
connection to CCE that recieves the event object and calls the
$cce->bye("SUCCESS"); method in order to commit the data to the CCE
Database? Is this part of my problem.
Thanks in advance...
Robert Walter
rwalter@xxxxxxxxx
Cyrius Automation Inc.
78 - 678 Citadel Drive
Port Coquitlam, BC
V3C6M7 CANADA
_______________________________________________
cobalt-developers mailing list cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers