SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Konfabulator Widget ?

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Konfabulator Widget ?
Author Message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post Konfabulator Widget ? Reply with quote

A little of the wall, but I notice konfabulator (widget.yahoo.com) offers the ability to use com objects.. the createObject call for w24x7ASP.jsRemote24x7 works properly, but my call to OpenSession seems to fail, and the docuentation is a little fuzzy.

The username is a local admin for the box in question?
The password is my serial number in xxxxx-xxxxxxx-xxxxx format ?

All the properties of the com object seem to be in place, I just think my opensession call is a little malformed.

Mon Dec 19, 2005 10:55 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7975

Post Re: Konfabulator Widget ? Reply with quote

Don't use license key as a paswrod. This idea came from version 2 and isn ot supported anymore.

Which error do you get when calling OpenSession? Do you have a separate license for the COM client?

: A little of the wall, but I notice konfabulator (widget.yahoo.com) offers the
: ability to use com objects.. the createObject call for
: w24x7ASP.jsRemote24x7 works properly, but my call to OpenSession seems to
: fail, and the docuentation is a little fuzzy.

: The username is a local admin for the box in question?
: The password is my serial number in xxxxx-xxxxxxx-xxxxx format ?

: All the properties of the com object seem to be in place, I just think my
: opensession call is a little malformed.

Mon Dec 19, 2005 11:32 am View user's profile Send private message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post Re: Konfabulator Widget ? Reply with quote

: Don't use license key as a paswrod. This idea came from version 2 and isn ot
: supported anymore.

: Which error do you get when calling OpenSession? Do you have a separate
: license for the COM client?

Using the konfab js engine is a little unusual and requires me to say :

var obj = COM.createObject("w24x7ASP.jsRemote24x7");

doing a 'dump' of this into in the konfab debugger shows the object is created properly (i see all the properties as listed in the 24x7 com documentation)

When i try openSession, I get a Error Calling OpenSession() from the try / catch block. This is coming from the konfab engine.

Curiously, when i create a test vbs file with the exact same OpenSession line (using the serial # as the pwd) i get a proper connect.. and this is using the latest 24x7 version. The documentation for this latest version also tells me to use the serial #, is there a different version of the docs ?

Mon Dec 19, 2005 11:56 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7975

Post Re: Konfabulator Widget ? Reply with quote

Please post fragment of your code where you do the OpenSession call. You can replace any senstive data with xxx or other symbols.

: Using the konfab js engine is a little unusual and requires me to say : var
: obj = COM.createObject("w24x7ASP.jsRemote24x7");

: doing a 'dump' of this into in the konfab debugger shows the object is
: created properly (i see all the properties as listed in the 24x7 com
: documentation)

: When i try openSession, I get a Error Calling OpenSession() from the try /
: catch block. This is coming from the konfab engine.

: Curiously, when i create a test vbs file with the exact same OpenSession line
: (using the serial # as the pwd) i get a proper connect.. and this is using
: the latest 24x7 version. The documentation for this latest version also
: tells me to use the serial #, is there a different version of the docs ?

Mon Dec 19, 2005 1:04 pm View user's profile Send private message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post Re: Konfabulator Widget ? Reply with quote

: Please post fragment of your code where you do the OpenSession call. You can
: replace any senstive data with xxx or other symbols.

var obj = COM.createObject("w24x7ASP.jsRemote24x7");

try{

obj.OpenSession( "xxxx", "yyyyy", "WinSock","zz.zz.zz.zz", "10095", "", 0);

}

catch(e)

{

log(e);

}

This is thw widget code, which should be fully javascript compliant. "log" is a widget function, and the COM.createObject call is widget code, but in viewing the 'obj' object, all the read only properties are there.. so, it is correctly calling the proper object
This outputs : Error calling OpenSession()

yyyy is currently my user password, but it has also worked in my vbs test code when I used the serial number. I have yet to have stand alone javascript code working in a .js file

yes, 10095 is the port i am using

Mon Dec 19, 2005 1:33 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7975

Post Re: Konfabulator Widget ? Reply with quote

According to the docs the last parameter should be true/false boolean value and you are passing a number.

: var obj = COM.createObject("w24x7ASP.jsRemote24x7");

: try{

: obj.OpenSession( "xxxx", "yyyyy",
: "WinSock","zz.zz.zz.zz", "10095",
: "", 0);

: }

: catch(e)

: {

: log(e);

: }

: This is thw widget code, which should be fully javascript compliant.
: "log" is a widget function, and the COM.createObject call is
: widget code, but in viewing the 'obj' object, all the read only properties
: are there.. so, it is correctly calling the proper object
: This outputs : Error calling OpenSession()

: yyyy is currently my user password, but it has also worked in my vbs test
: code when I used the serial number. I have yet to have stand alone
: javascript code working in a .js file

: yes, 10095 is the port i am using

Mon Dec 19, 2005 2:30 pm View user's profile Send private message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post Re: Konfabulator Widget ? Reply with quote

: According to the docs the last parameter should be true/false boolean value
: and you are passing a number.

That was the result of testing .. setting it to true / false gives the same result.

Mon Dec 19, 2005 4:00 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7975

Post Re: Konfabulator Widget ? Reply with quote

Try the following script:

1. Save this as test.js

// create COM object
var obj = WScript.CreateObject("w24x7ASP.jsRemote24x7");
// open session
obj.OpenSession( "john_doe", "password", "WinSock", "LocalHost", "10095", "", true);
// ... do something here ...
// close session and destroy COM object
delete obj

2. From DOS prompt run 'start test.js' on the computer where you have 24x7. Run it from the 24x7 installation directory.

3. If it fails, check 24x7 is set to run in the server mode and the port is 10095. If not, correct your 24x7 settings.

4. If it still fails reinstall 24x7 to ensure you have all files from the same version and there are no old hangouts from old versions.

5. Let us know what you get there.

: That was the result of testing .. setting it to true / false gives the same
: result.

Mon Dec 19, 2005 5:10 pm View user's profile Send private message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post Re: Konfabulator Widget ? Reply with quote

hmm,, this works. I wonder why the js engine for the widget is stopping me from doing an opensession. let me take it to them.

: Try the following script: 1. Save this as test.js

: // create COM object
: var obj = WScript.CreateObject("w24x7ASP.jsRemote24x7");
: // open session
: obj.OpenSession( "john_doe", "password",
: "WinSock", "LocalHost", "10095",
: "", true);
: // ... do something here ...
: // close session and destroy COM object
: delete obj

: 2. From DOS prompt run 'start test.js' on the computer where you have 24x7.
: Run it from the 24x7 installation directory.

: 3. If it fails, check 24x7 is set to run in the server mode and the port is
: 10095. If not, correct your 24x7 settings.

: 4. If it still fails reinstall 24x7 to ensure you have all files from the
: same version and there are no old hangouts from old versions.

: 5. Let us know what you get there.

Tue Dec 20, 2005 10:58 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.