openmeetings-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Solodovnik <solomax...@gmail.com>
Subject Re: GSoC applicants, please prepare patches or working code
Date Sat, 14 Apr 2012 15:34:04 GMT
If I were you I would make REST requests.
And you your current mechanism to get necessary parts from response

IMHO it will make code clean and readable.

2012/4/14 Ankur Ankan <ankurankan@gmail.com>

> It wasn't a weekend, was having exam in college  :(
>
> Now I am getting confused. What would you suggest using REST or SOAP?
>
> On 4/14/12, Maxim Solodovnik <solomax666@gmail.com> wrote:
> > no problem everybody need weekends :))
> >
> > I'll try to make myself more clear:
> > If you just go to URL
> > http://demo.dataved.ru/openmeetings/services/UserService/getSession
> > you will get the following response:
> > <ns:getSessionResponse xmlns:ns="http://services.axis.openmeetings.org">
> > <ns:return xmlns:ax21="http://basic.beans.data.app.openmeetings.org/xsd"
> > xmlns:ax23="http://basic.beans.persistence.app.openmeetings.org/xsd"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="
> > ax23:Sessiondata">
> > <ax23:id>1354</ax23:id>
> > <ax23:language_id xsi:nil="true"/>
> > <ax23:organization_id xsi:nil="true"/>
> > <ax23:refresh_time>2012-04-14</ax23:refresh_time>
> > <ax23:sessionXml xsi:nil="true"/>
> > <ax23:session_id>9e229d6045b7310190d2cff1f09af934</ax23:session_id>
> > <ax23:starttermin_time>2012-04-14</ax23:starttermin_time>
> > <ax23:storePermanent xsi:nil="true"/>
> > <ax23:user_id xsi:nil="true"/>
> > </ns:return>
> > </ns:getSessionResponse>
> >
> > so you can perform simplier requests (just access certain URLs) and the
> > parse object oriented XML response :)
> >
> > but it's up to you
> >
> > 2012/4/14 Ankur Ankan <ankurankan@gmail.com>
> >
> >> Sorry for taking so much time in replying.
> >>
> >> 1) I used the SOAP method mainly because of the object orientation
> >> (maybe in future if we would need to implement some features which
> >> need object orientation). I had read somewhere about some of the
> >> benefits of using SOAP like implementing REST takes more time than
> >> SOAP and there were some more. Here's the link if you want to have a
> >> look.
> >>
> >>
> >>
> http://stackoverflow.com/questions/3285704/should-a-netflix-or-twitter-style-web-service-use-rest-or-soap
> >>
> >> 2)You are right. I missed that.
> >>
> >> 3)Yes "*" has to be replaced with path. I was not sure about the paths
> >> that's why I had put  *  there. I had actually added a comment there
> >> but god knows when I removed them.
> >>
> >> Thank you very much for your suggestions.
> >>
> >> On 4/14/12, Maxim Solodovnik <solomax666@gmail.com> wrote:
> >> > Hello Ankur,
> >> >
> >> > Thanks for the code.
> >> >
> >> > Could you please answer couple of questions:
> >> > 1) In your calls you construct SOAP request, maybe it is easier to use
> >> REST?
> >> > 2) while constructing requests you are not escaping parameters (if
> name
> >> or
> >> > password will contain non XML character the XML will be invalid (I
> guess
> >> > you need to add encoding and/or enclose user data into CDATA sections
> >> > 3) I'm not sure how this going to work sid =
> >> > response.xml.getElementsByTagName("*"); Maybe "*" need to be replaced
> >> with
> >> > XPath?
> >> >
> >> > Thanks in advance
> >> >
> >> > 2012/4/14 Ankur Ankan <ankurankan@gmail.com>
> >> >
> >> >> Okay..
> >> >>
> >> >> On Sat, Apr 14, 2012 at 1:15 AM, Alexei Fedotov <
> >> alexei.fedotov@gmail.com
> >> >> >wrote:
> >> >>
> >> >> > Hello Ankur,
> >> >> >
> >> >> > > http://url/openmeetings/services/UserService/loginUser
> >> >> > this likely won't work
> >> >> >
> >> >> > would you please set up a working demo?
> >> >> >
> >> >> > --
> >> >> > With best regards / с наилучшими пожеланиями,
> >> >> > Alexei Fedotov / Алексей Федотов,
> >> >> > http://dataved.ru/
> >> >> > +7 916 562 8095
> >> >> >
> >> >> >
> >> >> >
> >> >> > 2012/4/14 Ankur Ankan <ankurankan@gmail.com>:
> >> >> > > Here is the new code with the loginUser method.
> >> >> > >
> >> >> > >
> >> >> > > On Thu, Apr 12, 2012 at 7:02 AM, Ankur Ankan <
> ankurankan@gmail.com>
> >> >> > wrote:
> >> >> > >>
> >> >> > >> Okay..
> >> >> > >>
> >> >> > >> On Thu, Apr 12, 2012 at 6:22 AM, seba.wagner@gmail.com
> >> >> > >> <seba.wagner@gmail.com> wrote:
> >> >> > >>>
> >> >> > >>> Hi Ankur
> >> >> > >>>
> >> >> > >>> I think we will find enough possibilities to extend
the Zimlet,
> >> for
> >> >> > >>> example
> >> >> > >>> a complete project also contains documentation, bug
fixing,
> >> >> > >>> gather
> >> >> > >>> feedback
> >> >> > >>> from users, integrate the feedback into your project,
write
> down
> >> >> > summary
> >> >> > >>> to
> >> >> > >>> make Google Staff happy about your progress
> >> >> > >>> I think we will find enough things to do on this
topic :)
> >> >> > >>>
> >> >> > >>> Sebastian
> >> >> > >>>
> >> >> > >>> 2012/4/12 Ankur Ankan <ankurankan@gmail.com>
> >> >> > >>>
> >> >> > >>> > I am implementing loginUser method as Maxim
asked me to do
> but
> >> >> > >>> > I
> >> >> need
> >> >> > >>> > some time (maybe 3-4 days). And I was thinking
that
> developing
> >> >> just a
> >> >> > >>> > zimlet would be quite short a project for the
whole of summer
> >> so I
> >> >> > >>> > would also like to develop similar plugins for
redmine and
> >> >> > >>> > typo3
> >> >> if I
> >> >> > >>> > get time.
> >> >> > >>> >
> >> >> > >>> > On 4/12/12, Ankur Ankan <ankurankan@gmail.com>
wrote:
> >> >> > >>> > > I am extremely sry for the inconvinence.
I am ready to
> >> >> > >>> > > discuss
> >> >> > >>> > > on
> >> >> > the
> >> >> > >>> > list.
> >> >> > >>> > >
> >> >> > >>> > > On 4/12/12, Alexei Fedotov <alexei.fedotov@gmail.com>
> wrote:
> >> >> > >>> > >> I think we done with audio part, the
rest is better to
> >> discuss
> >> >> on
> >> >> > >>> > >> the
> >> >> > >>> > >> list.
> >> >> > >>> > >>
> >> >> > >>> > >>
> >> >> > >>> > >>
> >> >> > >>> > >> --
> >> >> > >>> > >> With best regards / с наилучшими
пожеланиями,
> >> >> > >>> > >> Alexei Fedotov / Алексей Федотов,
> >> >> > >>> > >> http://dataved.ru/
> >> >> > >>> > >> +7 916 562 8095
> >> >> > >>> > >>
> >> >> > >>> > >>
> >> >> > >>> > >>
> >> >> > >>> > >> 2012/4/12 Ankur Ankan <ankurankan@gmail.com>:
> >> >> > >>> > >>> I am having problem with my internet
connection. Probably
> >> >> > >>> > >>> we
> >> >> > should
> >> >> > >>> > >>> reschedule my interview
> >> >> > >>> > >>>
> >> >> > >>> > >>> On 4/12/12, Maxim Solodovnik <solomax666@gmail.com>
> wrote:
> >> >> > >>> > >>>> Could you please implement
loginUser method?
> >> >> > >>> > >>>>
> >> >> > >>> > >>>> The current code is not well
formatted (contains
> redundant
> >> >> curly
> >> >> > >>> > >>>> braces,
> >> >> > >>> > >>>> and unclosed tags)
> >> >> > >>> > >>>> And it is too general
> >> >> > >>> > >>>>
> >> >> > >>> > >>>> 2012/4/12 Ankur Ankan <ankurankan@gmail.com>
> >> >> > >>> > >>>>
> >> >> > >>> > >>>>> The server hosting AJAX
client would be making proxy
> >> >> > >>> > >>>>> requests
> >> >> > on
> >> >> > >>> > >>>>> behalf
> >> >> > >>> > >>>>> ofteh client. By useing
proxy servlet, Zimlets can
> access
> >> >> > remote
> >> >> > >>> > >>>>> resources
> >> >> > >>> > >>>>> from other servers, as
well as make requests to 3rd
> party
> >> >> > system.
> >> >> > >>> > >>>>>
> >> >> > >>> > >>>>> On Thu, Apr 12, 2012 at
2:02 AM, seba.wagner@gmail.com<
> >> >> > >>> > >>>>> seba.wagner@gmail.com>
wrote:
> >> >> > >>> > >>>>>
> >> >> > >>> > >>>>> > It is likely the OpenMeetings
Server and Zimbra run
> on
> >> >> > >>> > >>>>> > different
> >> >> > >>> > >>>>> machines.
> >> >> > >>> > >>>>> > So you won't be able
to trigger the REST / SOAP
> >> WebService
> >> >> > >>> > >>>>> > directly
> >> >> > >>> > >>>>> > from
> >> >> > >>> > >>>>> > JavaScript because
Cross Domain Policy of Browsers
> only
> >> >> allow
> >> >> > >>> > >>>>> > requests
> >> >> > >>> > >>>>> > to
> >> >> > >>> > >>>>> > the domain they are
loaded from.
> >> >> > >>> > >>>>> > Have you an idea how
to solve that?
> >> >> > >>> > >>>>> >
> >> >> > >>> > >>>>> > Sebastian
> >> >> > >>> > >>>>> >
> >> >> > >>> > >>>>> > 2012/4/12 Ankur Ankan
<ankurankan@gmail.com>
> >> >> > >>> > >>>>> >
> >> >> > >>> > >>>>> > > I have written
a bit of code. Its almost the
> >> >> > >>> > >>>>> > > structure
> >> >> > >>> > >>>>> > > of
> >> >> > the
> >> >> > >>> > >>>>> > > plugin.
> >> >> > >>> > >>>>> > >
> >> >> > >>> > >>>>> > > On Wed, Apr 11,
2012 at 8:09 AM, Maxim Solodovnik <
> >> >> > >>> > >>>>> solomax666@gmail.com
> >> >> > >>> > >>>>> > >wrote:
> >> >> > >>> > >>>>> > >
> >> >> > >>> > >>>>> > >> I guess I
have missed this interview. Hope will
> >> >> > participate
> >> >> > >>> > >>>>> > >> the
> >> >> > >>> > >>>>> > >> next
> >> >> > >>> > >>>>> one
> >> >> > >>> > >>>>> > >> On Apr 11,
2012 8:26 PM, "Alexei Fedotov"
> >> >> > >>> > >>>>> > >> <alexei.fedotov@gmail.com>
> >> >> > >>> > >>>>> > >> wrote:
> >> >> > >>> > >>>>> > >>
> >> >> > >>> > >>>>> > >> > Dmitry,
folks
> >> >> > >>> > >>>>> > >> >
> >> >> > >>> > >>>>> > >> > Please
use
> >> >> > >>> > >>>>> > >> >
> >> >> > >>> > >>>>> > >> >
> >> >> > >>> > >>>>> > >>
> >> >> > >>> > >>>>> >
> >> >> > >>> > >>>>>
> >> >> > >>> >
> >> >> > >>> >
> >> >> >
> >> >>
> >>
> http://demo.dataved.ru/openmeetings/?invitationHash=bd6eb284e48c6e77326fc9c49bdd0a3c
> >> >> > >>> > >>>>> > >> >
> >> >> > >>> > >>>>> > >> > This
server uses port 80, I can access only this
> >> one
> >> >> > from
> >> >> > >>> > >>>>> > >> > this
> >> >> > >>> > >>>>> office
> >> >> > >>> > >>>>> > >> >
> >> >> > >>> > >>>>> > >> > --
> >> >> > >>> > >>>>> > >> > With
best regards / с наилучшими пожеланиями,
> >> >> > >>> > >>>>> > >> > Alexei
Fedotov / Алексей Федотов,
> >> >> > >>> > >>>>> > >> > http://dataved.ru/
> >> >> > >>> > >>>>> > >> > +7 916
562 8095
> >> >> > >>> > >>>>> > >> >
> >> >> > >>> > >>>>> > >> >
> >> >> > >>> > >>>>> > >> >
> >> >> > >>> > >>>>> > >> > 2012/4/11
Dmitry Zamula <
> club.brantner@gmail.com>:
> >> >> > >>> > >>>>> > >> > >
Yes, of course
> >> >> > >>> > >>>>> > >> > >
> >> >> > >>> > >>>>> > >> > >
2012/4/11 Alexei Fedotov <
> >> alexei.fedotov@gmail.com>
> >> >> > >>> > >>>>> > >> > >
> >> >> > >>> > >>>>> > >> > >>
> 16:30
> >> >> > >>> > >>>>> > >> > >>
> >> >> > >>> > >>>>> > >> > >>
Can we move the interview to 17:30?
> >> >> > >>> > >>>>> > >> > >>
> >> >> > >>> > >>>>> > >> > >>
> >> >> > >>> > >>>>> > >> > >>
--
> >> >> > >>> > >>>>> > >> > >>
With best regards / с наилучшими пожеланиями,
> >> >> > >>> > >>>>> > >> > >>
Alexei Fedotov / Алексей Федотов,
> >> >> > >>> > >>>>> > >> > >>
http://dataved.ru/
> >> >> > >>> > >>>>> > >> > >>
+7 916 562 8095
> >> >> > >>> > >>>>> > >> > >>
> >> >> > >>> > >>>>> > >> > >>
> >> >> > >>> > >>>>> > >> > >>
> >> >> > >>> > >>>>> > >> > >>
2012/4/10 Dmitry Zamula <
> >> club.brantner@gmail.com>:
> >> >> > >>> > >>>>> > >> > >>
> I would like to interview tomorrow
> >> >> > >>> > >>>>> > >> > >>
> (4/11/2012)
> >> >> > >>> > >>>>> > >> > >>
> at
> >> >> > >>> > >>>>> > >> > >>
> 16-30
> >> >> > >>> > >>>>> > >> > >>
> (UTC
> >> >> > >>> > >>>>> > >> > >>
> +
> >> >> > >>> > >>>>> > >> 04:00).
> >> >> > >>> > >>>>> > >> > >>
>
> >> >> > >>> > >>>>> > >> > >>
> 2012/4/10 Alexei Fedotov <
> >> >> alexei.fedotov@gmail.com
> >> >> > >
> >> >> > >>> > >>>>> > >> > >>
>
> >> >> > >>> > >>>>> > >> > >>
>> German,
> >> >> > >>> > >>>>> > >> > >>
>> It's good you have asked.
> >> >> > >>> > >>>>> > >> > >>
>>
> >> >> > >>> > >>>>> > >> > >>
>> We have to estimate coding skills of each
> >> >> > >>> > >>>>> > >> > >>
>> participant,
> >> >> > >>> > >>>>> > >> > >>
>> not
> >> >> > >>> > >>>>> only
> >> >> > >>> > >>>>> > >> > >>
>> proposal writing skills. You already have
> >> >> several
> >> >> > >>> > >>>>> > >> > >>
>> patches,
> >> >> > >>> > >>>>> > others
> >> >> > >>> > >>>>> > >> > >>
>> don't. Still it should not stop you from
> >> >> > >>> > >>>>> > >> > >>
>> showing
> >> >> > >>> > >>>>> > >> > >>
>> your
> >> >> > >>> > >>>>> dedication
> >> >> > >>> > >>>>> > >> to
> >> >> > >>> > >>>>> > >> > >>
>> GSoC by preparing a patch which advances
> >> >> > >>> > >>>>> > >> > >>
>> your
> >> >> > >>> > >>>>> > >> > >>
>> project.
> >> >> > >>> > >>>>> > >> > >>
>>
> >> >> > >>> > >>>>> > >> > >>
>> In other words, do the first step of your
> >> >> project
> >> >> > >>> > >>>>> > >> > >>
>> now.
> >> >> > >>> > >>>>> > >> > >>
>> And
> >> >> > >>> > >>>>> never
> >> >> > >>> > >>>>> > >> say
> >> >> > >>> > >>>>> > >> > >>
>> "we don't have time for that" on public
> >> lists.
> >> >> :-)
> >> >> > >>> > >>>>> > >> > >>
>>
> >> >> > >>> > >>>>> > >> > >>
>> Why we ask to do that? There exist
> brilliant
> >> >> > >>> > >>>>> > >> > >>
>> proposal
> >> >> > >>> > >>>>> > >> > >>
>> writers,
> >> >> > >>> > >>>>> > who
> >> >> > >>> > >>>>> > >> > >>
>> cannot code. That actually leads to GSoC
> >> >> failure,
> >> >> > >>> > because
> >> >> > >>> > >>>>> Google
> >> >> > >>> > >>>>> > >> is
> >> >> > >>> > >>>>> > >> > >>
>> very specific on the following matter:
> just
> >> >> fixing
> >> >> > >>> > >>>>> documentation
> >> >> > >>> > >>>>> > >> is
> >> >> > >>> > >>>>> > >> > >>
>> not enough. That's why we ask to
> demonstrate
> >> >> > coding
> >> >> > >>> > >>>>> > >> > >>
>> skills.
> >> >> > >>> > >>>>> > >> > >>
>>
> >> >> > >>> > >>>>> > >> > >>
>> Ankur, Dmitry,
> >> >> > >>> > >>>>> > >> > >>
>> In addition to patches we need to set up
> >> >> > >>> > >>>>> > >> > >>
>> openmeetings
> >> >> > >>> > >>>>> interviews
> >> >> > >>> > >>>>> > >> with
> >> >> > >>> > >>>>> > >> > >>
>> both of you. Please specify time which is
> >> >> suitable
> >> >> > >>> > >>>>> > >> > >>
>> for
> >> >> > >>> > >>>>> > >> > >>
>> you.
> >> >> > >>> > >>>>> > >> > >>
>>
> >> >> > >>> > >>>>> > >> > >>
>> --
> >> >> > >>> > >>>>> > >> > >>
>> With best regards / с наилучшими
> >> >> > >>> > >>>>> > >> > >>
>> пожеланиями,
> >> >> > >>> > >>>>> > >> > >>
>> Alexei Fedotov / Алексей Федотов,
> >> >> > >>> > >>>>> > >> > >>
>> http://dataved.ru/
> >> >> > >>> > >>>>> > >> > >>
>> +7 916 562 8095
> >> >> > >>> > >>>>> > >> > >>
>>
> >> >> > >>> > >>>>> > >> > >>
>>
> >> >> > >>> > >>>>> > >> > >>
>>
> >> >> > >>> > >>>>> > >> > >>
>> 2012/4/10 German Grekhov <
> >> >> > german.grekhov@gmail.com>:
> >> >> > >>> > >>>>> > >> > >>
>> > Alexei,
> >> >> > >>> > >>>>> > >> > >>
>> > I don't understand. What does it mean?
> >> >> > >>> > >>>>> > >> > >>
>> > What patches are you talking about?
> >> >> > >>> > >>>>> > >> > >>
>> >
> >> >> > >>> > >>>>> > >> > >>
>> > German.
> >> >> > >>> > >>>>> > >> > >>
>> >
> >> >> > >>> > >>>>> > >> > >>
>> [...]
> >> >> > >>> > >>>>> > >> > >>
>>
> >> >> > >>> > >>>>> > >> > >>
>
> >> >> > >>> > >>>>> > >> > >>
>
> >> >> > >>> > >>>>> > >> > >>
>
> >> >> > >>> > >>>>> > >> > >>
> --
> >> >> > >>> > >>>>> > >> > >>
>
> >> >> > >>> > >>>>> > >> > >>
>
> >> >> > _________________________________________________________
> >> >> > >>> > >>>>> > >> > >>
>
> >> >> > >>> > >>>>> > >> > >>
> С уважением,
> >> >> > >>> > >>>>> > >> > >>
>
> >> >> > >>> > >>>>> > >> > >>
> Замула Дмитрий
> >> >> > >>> > >>>>> > >> > >>
> >> >> > >>> > >>>>> > >> > >
> >> >> > >>> > >>>>> > >> > >
> >> >> > >>> > >>>>> > >> > >
> >> >> > >>> > >>>>> > >> > >
--
> >> >> > >>> > >>>>> > >> > >
> >> >> > >>> > >>>>> > >> > >
> >> >> > _________________________________________________________
> >> >> > >>> > >>>>> > >> > >
> >> >> > >>> > >>>>> > >> > >
С уважением,
> >> >> > >>> > >>>>> > >> > >
> >> >> > >>> > >>>>> > >> > >
Замула Дмитрий
> >> >> > >>> > >>>>> > >> >
> >> >> > >>> > >>>>> > >>
> >> >> > >>> > >>>>> > >
> >> >> > >>> > >>>>> > >
> >> >> > >>> > >>>>> >
> >> >> > >>> > >>>>> >
> >> >> > >>> > >>>>> > --
> >> >> > >>> > >>>>> > Sebastian Wagner
> >> >> > >>> > >>>>> > https://twitter.com/#!/dead_lock
> >> >> > >>> > >>>>> > http://www.openmeetings.de
> >> >> > >>> > >>>>> > http://www.webbase-design.de
> >> >> > >>> > >>>>> > http://www.wagner-sebastian.com
> >> >> > >>> > >>>>> > seba.wagner@gmail.com
> >> >> > >>> > >>>>> >
> >> >> > >>> > >>>>>
> >> >> > >>> > >>>>
> >> >> > >>> > >>>>
> >> >> > >>> > >>>>
> >> >> > >>> > >>>> --
> >> >> > >>> > >>>> WBR
> >> >> > >>> > >>>> Maxim aka solomax
> >> >> > >>> > >>>>
> >> >> > >>> > >>
> >> >> > >>> > >
> >> >> > >>> >
> >> >> > >>>
> >> >> > >>>
> >> >> > >>>
> >> >> > >>> --
> >> >> > >>> Sebastian Wagner
> >> >> > >>> https://twitter.com/#!/dead_lock
> >> >> > >>> http://www.openmeetings.de
> >> >> > >>> http://www.webbase-design.de
> >> >> > >>> http://www.wagner-sebastian.com
> >> >> > >>> seba.wagner@gmail.com
> >> >> > >>
> >> >> > >>
> >> >> > >
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > WBR
> >> > Maxim aka solomax
> >> >
> >>
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message