Return-Path: X-Original-To: apmail-openmeetings-user-archive@www.apache.org Delivered-To: apmail-openmeetings-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A44A210C4F for ; Tue, 11 Jun 2013 09:23:19 +0000 (UTC) Received: (qmail 37799 invoked by uid 500); 11 Jun 2013 09:23:18 -0000 Delivered-To: apmail-openmeetings-user-archive@openmeetings.apache.org Received: (qmail 37762 invoked by uid 500); 11 Jun 2013 09:23:12 -0000 Mailing-List: contact user-help@openmeetings.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@openmeetings.apache.org Delivered-To: mailing list user@openmeetings.apache.org Received: (qmail 37731 invoked by uid 99); 11 Jun 2013 09:23:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 09:23:09 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of solomax666@gmail.com designates 209.85.214.178 as permitted sender) Received: from [209.85.214.178] (HELO mail-ob0-f178.google.com) (209.85.214.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 09:23:02 +0000 Received: by mail-ob0-f178.google.com with SMTP id fb19so11197935obc.23 for ; Tue, 11 Jun 2013 02:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=uZdj1cCh63rNCcraiPKTfN1KBxoTdlM73IrqPfyf1XE=; b=NuODroeZmnu5w61DfgiofYUS0fEaufPcITV/0JLqGlYlo3p8bSClnIZiWBVJEnMTLZ D4KdhUIkqPcfu+vchojLBrTl3ihnbJWmqVQMOQKgl4kOJZkODkD1X1xlXydML9yU/n6b n34ngRu/ToFdfIZxoZ2Ob+U9ZT0jE+JivEZZlNQuNCd0M6112JnVH7U3Ee/7gaD2S6xs hfR8d4VqAhjir5aXFJ24MvO3DmfovGh+V/+X27cjvJvM9NwCpEdwk6YF7DveV1ZdRMHy rj0p+X9ZdCplnhQsYohZQWVA1JBAtU6zzbx8bnDuXGvQTKwQ5i6YvcWFGtFMV5Vewv3d 9JTw== MIME-Version: 1.0 X-Received: by 10.182.204.33 with SMTP id kv1mr11337159obc.19.1370942561640; Tue, 11 Jun 2013 02:22:41 -0700 (PDT) Received: by 10.182.16.133 with HTTP; Tue, 11 Jun 2013 02:22:41 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Jun 2013 16:22:41 +0700 Message-ID: Subject: Re: getRoomsByID API From: Maxim Solodovnik To: Openmeetings user-list Content-Type: multipart/alternative; boundary=e89a8ff2560e64e69104dedd7047 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff2560e64e69104dedd7047 Content-Type: text/plain; charset=UTF-8 Maybe user performing login to make request is not Admin/SOAP ? On Mon, Jun 10, 2013 at 8:45 AM, John Doe wrote: > Same exact response from it even if I corrupt the session id. > > Restarted the service, then rebooted the server and same thing after both > events. Starting to think I might have something corrupted from install. > > However, I can get an "unknown" response if I leave rooms_id as blank. > > Would the cache be able to stay between reboots? If so, is there a way to > manually clear it out/force it to refresh? > > > On Sun, Jun 9, 2013 at 10:47 AM, Maxim Solodovnik wrote: > >> Weird, I have just checked it. >> Works as expected. Maybe somehow cache issue? >> On Jun 9, 2013 9:11 PM, "John Doe" wrote: >> >>> That is the current setup I have running, getSession returns a SID, >>> loginUser returns "1", and then no matter what room_id I send to >>> getRoomsById it returns the same XML response. >>> >>> . >>> >>> >>> On Sun, Jun 9, 2013 at 6:57 AM, Maxim Solodovnik wrote: >>> >>>> you should call: >>>> 1) services/UserService/getSession >>>> >>>> 2) services/UserService/loginUser?SID=SID_FROM_POINT_1&username=USERNAME&userpass=PASSWORD >>>> 3) services/RoomService/getRoomById?SID=SID_FROM_POINT_1&rooms_id=1 >>>> >>>> >>>> >>>> On Sat, Jun 8, 2013 at 8:54 PM, John Doe wrote: >>>> >>>>> When using the getRoomById API call, which room_id is it looking for. >>>>> I have tried calling to for an ID I know is good and one that is not used, >>>>> but I get the same XML response from both. >>>>> >>>>> ... >>>>> openmeetings/services/RoomService/getRoomById?SID=26d03a64e097b4e2f64ff8a089ad8229&rooms_id=1 >>>>> >>>>> and ... >>>>> openmeetings/services/RoomService/getRoomById?SID=26d03a64e097b4e2f64ff8a089ad8229&rooms_id=99 >>>>> >>>>> The response from both is: >>>>> >>>>> >>>> xsi:nil="true"/> >>>>> >>>>> What I am trying to do is confirm that a room exists. Am I formatting >>>>> the call incorrectly or should I be using a different call? >>>>> >>>>> Before this I am able to confirm the session id was generated and it >>>>> accepted the login. >>>>> >>>> >>>> >>>> >>>> -- >>>> WBR >>>> Maxim aka solomax >>>> >>> >>> > -- WBR Maxim aka solomax --e89a8ff2560e64e69104dedd7047 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Maybe user performing login to make=C2=A0request=C2=A0is n= ot Admin/SOAP ?


On Mon, Jun 10, 2013 at 8:45 AM, John Doe <boogieman2048@gma= il.com> wrote:
Same exact response from it= even if I corrupt the session id.

Restarted the service= , then rebooted the server and same thing after both events. Starting to th= ink I might have something corrupted from install.

However, I can get an "unknown" response if I leav= e rooms_id as blank.

Would the cache be = able to stay between reboots? If so, is there a way to manually clear it ou= t/force it to refresh?


On Sun, Jun 9, 2013 at 10:47 AM, Maxim Solodovnik <solomax66= 6@gmail.com> wrote:

Weird, I have just checked it= .
Works as expected. Maybe somehow cache issue?

On Jun 9, 2013 9:11 PM, "John Doe" <= ;boogieman2048= @gmail.com> wrote:
That is the current setup I have running, getSession retur= ns a SID, loginUser returns "1", and then no matter what room_id = I send to getRoomsById it returns the same XML response.

.


= On Sun, Jun 9, 2013 at 6:57 AM, Maxim Solodovnik <solomax666@gmail.com<= /a>> wrote:
you should call:
1) ser= vices/UserService/getSession
2)=C2=A0services/UserService/loginUs= er?SID=3DSID_FROM_POINT_1&username=3DUSERNAME&userpass=3DPASSWORD
3)=C2=A0services/RoomService/getRoomById?SID=3DSID_FROM_POINT_1&ro= oms_id=3D1



On Sat, Jun 8, 2013 at 8:54 PM, John Doe <boogiema= n2048@gmail.com> wrote:
When using the=C2=A0getRoomById API call, = which room_id is it looking for. I have tried calling to for an ID I know i= s good and one that is not used, but I get the same XML=C2=A0response=C2=A0= from both.

=
...openmeetings/services/RoomService/getRoomById?SID=3D26d= 03a64e097b4e2f64ff8a089ad8229&rooms_id=3D1

and ...openmeetings/services/RoomService/getRoomById?= SID=3D26d03a64e097b4e2f64ff8a089ad8229&rooms_id=3D99

The=C2=A0response=C2=A0from both is:

=
<ns:getRoomByIdResponse xmlns:ns=3D"http://services.a= xis.openmeetings.apache.org"><ns:return xmlns:xsi=3D"http:= //www.w3.org/2001/XMLSchema-instance" xsi:nil=3D"true"/&= gt;</ns:getRoomByIdResponse>

What I am trying to do is confirm that a room exists. = Am I formatting the call incorrectly or should I be using a=C2=A0different= =C2=A0call?

Bef= ore this I am able to confirm the session id was generated and it accepted = the login.



--
WBR
Maxim= aka solomax





--
WBR
Maxim= aka solomax --e89a8ff2560e64e69104dedd7047--