[greenstone-devel] [Fwd: Re: [greenstone-users] how to build Application which can search , get and manage the Object in GSDL remote]

From Anupama of Greenstone Team
DateWed May 14 11:44:14 2008
Subject [greenstone-devel] [Fwd: Re: [greenstone-users] how to build Application which can search , get and manage the Object in GSDL remote]
---------------------------- Original Message ----------------------------
Subject: Re: [greenstone-users] how to build Application which can search
, get and manage the Object in GSDL remote
From: ak19@cs.waikato.ac.nz
Date: Thu, May 8, 2008 10:36 am
To: "feng wang" <wangfeng77@gmx.de>
--------------------------------------------------------------------------

Hi Feng Wang,

> But how can i kill the Exception? Hope that you can help me !
Sorry, I should have tested it first. It was more a theoretical example I
wrote for someone else here who wanted to know the basic form of invoking
web services. I merely took the relevant bits of my code and put them into
a java file.

I could debug it, or you can try out the new Greenstone 3 Web Services
Demo-client! (I hope you will go for the latter.) At present, you can
download it from
http://trac.greenstone.org/browser/other-projects/trunk/gs3-webservices-democlient
- If you can't do SVN for some reason, you can look in the "dist" folder
and get the zip file of the entire thing. Including all the source code.
- Either way, at any time when you want to rebuild, go into the top level
gs3-webservices-democlient directory and type "ant". It will give you the
usage listing the commands.
- The "docs" folder contains a folder with "HowTo" files. Hopefully they
can help you. Start with reading "0InstallDemoClientInBrief.html" and then
decide if you need to read anything else. Your greenstone 3 must be very
up to date for it to work, though, so get greenstone 3 from SVN again.
I am still adding to the documentation, therefore bear in mind it will be
updated shortly. Also, the zip files and jar file will soon be moved to
the greenstone wiki page, but you can still get the source from SVN at the
trac link above and compile it yourself if you have ant 1.6.5.

> the second question is about the gs3Service and gs3client. what you gived
> to me are new developed code from you. But it's not the standard version
> for GSDL. I mean that there are no digital Libraries in web having the
> gs3service code. But i must write a wrapper for all libraries which are
> used by GSDL Software. So i don't know whehter i should use your code.
> Maybe i should sak my teacher at first.
I'm not sure I completely understand. Greenstone has its own web services,
and Fedora has its own. And DSpace would too, I think. To write a wrapper
common to several Digital Libraries, you could design an interface that
contains abstract operations represented in some way by all the DLs you
had in mind. Then you would implement this interface for each digital
library.

The demo-client above accesses Greenstone 3 and Fedora repositories by
implementing a common interface for both DLs.
But to try out the demo-client against Fedora, you will need to have
Fedora installed (I only tested with Fedora 2.2.1, I intend to be testing
with Fedora 3). The documentation included will explain what you need to
do. There's mention of something called "FLI" (The Fedora Librarian
Interface) used to export Greenstone documents into Fedora. I am going to
be adding a Readme for that today or tomorrow hopefully that will explain
what you need to do to get that working.

If I misunderstood and didn't answer that last question, I think your
teacher will certainly be able to.

Best of luck,
Anupama

> Hello Anupama,
>
> Sorry, that i disappeared for a whole. I was going to write a demo for
> Fedora Repository und searching the answer to communciate to DSpace just
> like for the Fedora and GSDL.
>
> Now turn it to the GSDL! I tried to use the Demo Code what you gived to
> me. And used to creat the java file in the
> "Example1_WritingClientForGS3WebService". To test! but still got Error!
>
> "ERROR trying to invoke web servicejava.lang.NullpointerException
> In main. Exception: java.lang.NullpointerException"
>
> I knew there is something wrong by invoking the message with the method
> call.invoke(msg)and also knew that i have to find out what kind of the
> return values is. then i should change the code after getting the values
> class.
> But how can i kill the Exception? Hope that you can help me !
>
> the second question is about the gs3Service and gs3client. what you gived
> to me are new developed code from you. But it's not the standard version
> for GSDL. I mean that there are no digital Libraries in web having the
> gs3service code. But i must write a wrapper for all libraries which are
> used by GSDL Software. So i don't know whehter i should use your code.
> Maybe i should sak my teacher at first.
>
> regards
> feng wang
>