login interface issue

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
himanshu
Posts: 724
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

login interface issue

Post by himanshu »

Hi,

I create a custom Javascript to login the application with the provided custom awareim xml interface.

all things goes well, i got the reply with the following xml string but in that session timeout issue comming by which i not able to logged in via custom programming. please help or have suggestion on it...

here is the send AJAX xml string:-

Code: Select all

<login_action business_space=”TestApp” user_name=”admin” password=”password”
testing_mode=”true” />
and here is the reply got from the server in xml:-

Code: Select all

<login_action_return>
<failure>session timeout</failure>
</login_action_return>
Thanks
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
himanshu
Posts: 724
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Post by himanshu »

want to correct the reply string..

Code: Select all

<root> 

<login_action_return> 

<failure timeout="true">Session has timed out</failure> 

</login_action_return> 

</root> 

please help me a little... :?:
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
aware_support
Posts: 7527
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Which URL are you sending the XML to and why do you need to send this login request?

There are two XML interfaces that Aware IM exposes - the old and the new one. Programmer's Reference Guide describes the old one and it looks like you are sending the request to the new one.
Aware IM Support Team
himanshu
Posts: 724
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Post by himanshu »

Hi,

I am sending URL 'webif.awr'

and i am working on some custom programming on awareIM and Flex so it requires to login.

I am using the Interface provided with the programming reference guide.

if in new version there is a change, it would be great if you can send me the new. so i can test it down.

and will sure going to show my work if what we are looking from the awareIM application do.

Thanks
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
Gert
Posts: 30
Joined: Fri Jul 24, 2009 3:16 pm

Post by Gert »

Maybe testmode can only be "false"?
himanshu
Posts: 724
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Post by himanshu »

yes i try with false also but no change same session timeout issue...
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
aware_support
Posts: 7527
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

The URL you are sending it to is wrong. I don't know where you picked it up.

You should use the URL mentioned in the Programmer's Guide.
Aware IM Support Team
himanshu
Posts: 724
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Post by himanshu »

i tried with the given URL specified in programmer reference guide too 'xml.awr' but getting the same result nothing different
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
aware_support
Posts: 7527
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

The URL specified in the Programmer's Reference is xml.do, not xml.awr!!!!
Aware IM Support Team
Gert
Posts: 30
Joined: Fri Jul 24, 2009 3:16 pm

Post by Gert »

himanshu wrote:want to correct the reply string..

Code: Select all

<root> 

<login_action_return> 

<failure timeout="true">Session has timed out</failure> 

</login_action_return> 

</root> 

please help me a little... :?:
The <root> should not be here?
himanshu
Posts: 724
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Post by himanshu »

Hi Support,

here what is in programmer guide.
Note: The latest version 4.0 of Aware IM uses the AJAX technology and the EXT 2.0 library to
build its default out-of-the-box user interface. This version makes use of an updated XML
interface. Application developers can use the new version of the XML interface to create their
own custom front ends. The DTD file describing the new interface is available at
http://www.awareim.com/dtd/web_interface.dtd. The URL to use for the new interface is
http://serverName:8080/AwareIM/xml.awr
so i tried this...

but now it works...thanks support and gert..<root> is also the problem.

sometime easy things go such hard..

now it works and i got in return session id too.
and it is showing the same issue which gert has put into forum..regarding session id...

Code: Select all

<login_action_return>

<session_id>CC0D9E913BEC2DFD1EA4C52FFB035A56</session_id>

</login_action_return> 
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
aware_support
Posts: 7527
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

The new interface is not documented, so use with care!

If you are and experienced AJAX and Javascript programmer take a look at the file AwareIM/Tomcat/webapps/AwareIM/aware_ext.js. This file contains ALL the code that implements Aware IM UI and communicates with the Aware IM server via AJAX and the new interface. If you can figure out how this works (and you should if you have enough experience in this area), then only sky is the limit - you can create your own UI to Aware IM.

As for the &lt and &gt problem - we'll have a look at it (this seems to be a problem of the old interface)
Aware IM Support Team
himanshu
Posts: 724
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Post by himanshu »

Thanks a lots!! and its really great!!
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
himanshu
Posts: 724
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Post by himanshu »

Hi support,

Need to know that is the interface described in the document is totally change or a bit,


and when supposed shall we have the updated xml interface in our documentation..
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
aware_support
Posts: 7527
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

The interface has been changed quite a lot. Don't know when this is going to be fully documented but the DTD file is available in http://www.awareim.com/web_interface.dtd

And like I said the example is in aware.js (now aware_full.js)
Aware IM Support Team
Post Reply