Issue with Server Integration using PHP. Says "bad-response"

Avatar

Avatar

TK_Radion

Avatar

TK_Radion

TK_Radion

25-10-2011

Hi,

Using PHP 5.2.5 and LCCS.php revision #2 for server integration.

Have followed code from sample application, but it gives error when trying to initiate object for RTCAccount.

This is what I get when trying with Command Prompt:

C:\wamp\bin\php\php5.2.5>php C:\wamp\www\radion_php\lccs\lccs.php --debug --host=http://collaboration.adobelivecycle.com cprovider USER_NAME PASSWORD

$Revision: #2 $ - $Date: 2011/07/20 $

http_get: http://collaboration.adobelivecycle.com/cprovider?mode=xml&accountonly

=true&

Array

(

    [0] => HTTP/1.1 302 Moved Temporarily

    [1] => Server: Apache-Coyote/1.1

    [2] => X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_

GA date=200707131605)/Tomcat-5.5

    [3] => Expires: Tue, 25 Oct 2011 09:29:17 GMT

    [4] => Cache-Control: max-age=30

    [5] => Set-Cookie: Whitcomb-Ident=cprovider:na2-sdk-a757f7e0-6ecf-450a-8959-

3c08b63fdb84; Domain=collaboration.adobelivecycle.com; Path=/cprovider

    [6] => Location: https://na2.collaboration.adobelivecycle.com/cprovider?mode

=xml&accountonly=true&

    [7] => Content-Language: en-US

    [8] => Content-Length: 0

    [9] => Date: Tue, 25 Oct 2011 09:28:47 GMT

    [10] => Connection: close

)

Error: exception 'RTCError' with message 'bad-response' in C:\wamp\www\radion_php\lccs\lccs.php:674

Stack trace:

#0 C:\wamp\www\radion_php\lccs\lccs.php(255): RTCAccount->do_initialize()

#1 C:\wamp\www\radion_php\lccs\lccs.php(1047): RTCAccount->__construct('http://collabor...')

#2 {main}

C:\wamp\bin\php\php5.2.5>

Not sure if I am missing something.

Please help..

Thanks

View Entire Topic

Avatar

Avatar

nzezelj

Avatar

nzezelj

nzezelj

01-11-2011

Hi,

Please notice that this time you've 'failed' very differently than before.  The debug log you supplied above does the redirect and retrieves plenty of information from the LCCS service. 

For example:

==== room list for cprovider ====

http_get: https://na2.collaboration.adobelivecycle.com:443/app/content/accounts/

jia/na2-sdk-a757f7e0-6ecf-450a-8959-3c08b63fdb84/meetings/?gak=cmVuZ2E qbmExcioxM

zM1ZWVlODNjOSpYMzg4TUJTVDc1N1EzMU5TSFRNNldEQzBXNA==

myfirstroom::Wed, 14 Sep 11 07:03:11 -0400

chatroom::Wed, 14 Sep 11 07:03:28 -0400

lccschatroom:myApp:Wed, 14 Sep 11 07:20:32 -0400

dfphchatroom:myApp:Wed, 12 Oct 11 02:59:38 -0400

iproviderchatroom:myApp:Wed, 12 Oct 11 03:49:15 -0400

It fails on "archive list retrieval', but that is a known issue if you do not have any recordings.  So, in fact, it works!

Feel free to use any other server-to-server commands and re-verify, but I do not think you should have any problems.

Thanks,

Nikola