[greenstone-devel] [Fwd: Re: Updates. Re: [greenstone-users] how to build Application]

From Anupama of Greenstone Team
DateWed May 14 11:52:45 2008
Subject [greenstone-devel] [Fwd: Re: Updates. Re: [greenstone-users] how to build Application]
---------------------------- Original Message ----------------------------
Subject: Re: Updates. Re: [greenstone-users] how to build Application
From: ak19@cs.waikato.ac.nz
Date: Wed, May 14, 2008 11:30 am
To: "feng wang" <wangfeng77@gmx.de>
Cc: greenstone-devel@list.scms.waikato.ac.nz
greenstone-users@list.scms.waikato.ac.nz
--------------------------------------------------------------------------

Hi,

> There is a question i should ask you now!
> What is the different between the original Version of SOAPServer with
> "Process()"and the QBRSOAPServe?
- The original SOAPServer directly maps the process method of GS3's
MessageRouter class into the process web service operation. It will take
all the request messages that Greenstone 3's MessageRouter takes and
return their response messages.
- The newly added QBRSOAPServer also uses the process method of
MessageRouter, but internally. It only offers distinct query, browse and
retrieve operations. Instead of taking XML, these operations usually take
Strings as parameters or arrays and sometimes HashMaps. The operations
merely use those parameters to then construct the request message XML for
the query, browse or retrieve (or describe) type functionality that it
represents. Once it constructs the XML request message, the QBRSOAPServer
invokes the MessageRouter's process method with it and returns the XML
response message.

The code for the QBRSOAPServer is actually in the demo-client as well,
therefore you would already have it. At Trac you can find it here:
http://trac.greenstone.org/browser/other-projects/trunk/gs3-webservices-democlient/src/GS3DemoClient/org/greenstone/gs3services/QBRSOAPServer.java


> I think,maybe i should realize the two
> version of client of all. Do the two SOAPServe support all internal
action
> of GSDL like the fedora API offered to us?
They don't. Fedora'a API-A and API-M together expose all the Fedora
functionality for users to make use of.
GS3's SOAPServer offers much of the publicly available Greenstone 3
functionality; everything that's available through the MessageRouter.
In contrast, the QBRSOAPServer merely offers the Querying, Browsing and
Retrieving operations (and the ability to send describe messages to the
MessageRouter/Collections/Services).

Not all of GS3's functionality is available through the MessageRouter
though. The Add Document, Build Collection and Import Collection and some
other operations still need to be made available via the MessageRouter,
they were specified in the GS3 Developer's manual but I've been told that
they haven't yet been implemented (completely).


> I tried to update the new version of GSDL like you wrote in
> GettingGS3WebServicesRunning.html. And there was Build Failed by lauching
> the instruction "ant start".
> /opt/Greenstone3/build.xml:23: taskdef class ise.antelope.tasks.IfTask
> cannot be found
As I recall, Antelope.jar is one of the additional jar files that GS3 uses
for its build. It's here:
http://trac.greenstone.org/browser/greenstone3/trunk/lib/java
But you may still find you need other files.
Also, do you have Ant 1.6.5 (or Ant 1.7, which I also tested it against).
Ant 1.6.5 is needed to get it working.

> So i think i should download the all new version from SVN. At first get a
> SVN and install it maybe!
Yes, it might be easier to get everything instead of having to hunt down
where the missing items are.

> I think,i have misunderstand for the demo-client against a Fedora
> repository of Greenstone 3 content. I thought this is just a demo-client
> program to access the fedora repository. Not for the GSDL3 Content. But i
> think there are many codes that i could study it.
The demo-client is mainly a Greenstone 3 web services demo-client that
allows for querying, browsing and retrieval of data in your GS3 Digital
Library using GS3's QBRSOAPServer web services.
BUT, the GS3 demo-client also allows for (querying,) browsing and
retrieval of specifically Greenstone 3 documents stored in a Fedora
repository as long as these documents were exported by FLI or directly by
the perl code that FLI uses (g2fimport.pl and g2fbuild.pl). For getting
the querying functionality though, you need to install
FedoraGenericSearch.
I'll be adding an executable jar file into the SVN repository today that
will install a fedoragsearch.war file that you downloaded for you, as long
as you have Fedora 2.2.1+ installed already. BUT, the installation is
implemented so that it specifically indexes Greenstone documents.


Feng Wang, would you consider sending any Greenstone-related questions
directly to the Greenstone mailing list?
(greenstone-devel@list.scms.waikato.ac.nz, or
greenstone-devel@list.scms.waikato.ac.nz or
greenstone3@list.scms.waikato.ac.nz as you find appropriate.) I am able to
view the messages on there and then, when I reply, the replies will go
directly into the mailing list as well.

Otherwise I might forget to forward your questions to the list and also
forget to fwd any parts I might have been able to answer. If we send it to
the mailing list, others with similar questions in the future could look
through it for what's already been asked and answered there.

I've just now forwarded our last few emails there, therefore that's no
worry.

Kind regards,
Anupama

> Hi,
> thank you for your mails!
>
> I tried to update the new version of GSDL like you wrote in
> GettingGS3WebServicesRunning.html. And there was Build Failed by lauching
> the instruction "ant start".
> /opt/Greenstone3/build.xml:23: taskdef class ise.antelope.tasks.IfTask
> cannot be found
> So i think i should download the all new version from SVN. At first get a
> SVN and install it maybe!
>
> There is a question i should ask you now!
> What is the different between the original Version of SOAPServer with
> "Process()"and the QBRSOAPServe? I think,maybe i should realize the two
> version of client of all. Do the two SOAPServe support all internal
action
> of GSDL like the fedora API offered to us?
>
> I think,i have misunderstand for the demo-client against a Fedora
> repository of Greenstone 3 content. I thought this is just a demo-client
> program to access the fedora repository. Not for the GSDL3 Content. But i
> think there are many codes that i could study it.
> Regards
> Feng
>
>