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

From feng wang
DateWed Apr 16 09:29:02 2008
Subject [greenstone-users] how to build Application which can search , get and manage the Object in GSDL remote
In-Reply-To (20080402145353-204540-gmx-net)
Hi,

I am glad that I could get so many advices from the developer team of GSDL. And so lucky got the answer about the SOAP.

Anupama, like you told to me that in the GSDL http://localhost:8080/greenstone3/services has a WSDL Page for ?process? method. But it?s for the ?process? messages or for the ?process? services? You know, there is a ?process? service in the ?process? message.

Do you know, whether the GSDL supports any messages without the WSDL Information except the ?process?? Like ?describe?, ?system?? type messages in the Manual.pdf. There are important for my client program too. So I must know it, hehe.

To write the remote Client Implementation for GSDL with SOAP is not so easy like for the Fedora Repository. The Fedora hat a Fedora-Client.jar, which has two APIs for accessing the managing the Fedora Repository including the SOAP. What I should do is just to call the method with the two APIs. And the Fedora has a DEMO Java Code for the SOAP Implementation.

I think for the GSDL, I must create the SOAP Stub and Connection, parse the XML File ? all by myself. I am a Newbie for it. So I do need the help from you. Can you give me some source code or advices for client Implementation, if you have? Some demo-code like describe the repository. I just wanna study and begin to write my program as fast as soon.

Do you know how I can upload the Document remote to GSDL Service with SOAP and ?Process?? And how does the workflow for the building a Document look like? Like the GLI with several different ?process? message?

Hope, that you can help me. Thank You!

Regards
Feng Wang

-------- Original-Nachricht --------
> Datum: Wed, 02 Apr 2008 16:53:53 +0200
> Von: "feng wang" <wangfeng77@gmx.de>
> An: ak19@cs.waikato.ac.nz
> CC: greenstone-users@list.scms.waikato.ac.nz
> Betreff: Re: [greenstone-users] how to build Application which can search , get and manage the Object in GSDL remote

> Hi Anupama,
> Thanks for your support and advices to my implementation!
>
> What i want to write is a pragramm which has the ability to add, delete
> and manage the docs/collection in GSDL remote. It looks like a other remote
> GLI.
> But my Program should manage more than one digital Libraries remote. So i
> searched the protocol to realize the ability for each one.
>
> Great that i got the agreement from you and Quan, that i can use the AXIS
> SOAP to write the program to communicate with GSDL. It's an important step
> for me.
>
> I am waiting for your Document and happy that the GSDL-User can have a
> very useful Document in the future.
> Regards
> Feng Wang
>
>
> -------- Original-Nachricht --------
> > Datum: Thu, 27 Mar 2008 11:10:47 +1300 (NZDT)
> > Von: ak19@cs.waikato.ac.nz
> > An: "feng wang" <wangfeng77@gmx.de>
> > Betreff: Re: [greenstone-users] how to build Application which can
> search , get and manage the Object in GSDL remote
>
> > Hi Feng Wang,
> >
> > I know your question is addressed to Quan. But as I recently did a
> project
> > on writing simple web services for Greenstone 3 and had worked through
> the
> > same questions you have, I'm hoping the following may be able to help
> you:
> >
> > > Which one of SOAP was used for GSDL? Is the AXIS of Apache?
> > Yes, Apache Axis.
> >
> > > I'm searching some examples and tutorial for the SOAP and AXIS with
> the
> > > client side.
> > I am in the process of finishing up my project's files so I can add them
> > to the Greenstone Trac repository. Along with it, I am going to include
> > some documentation that explains what I did, such as how I created a web
> > service class and exposed it as a web service using Apache Axis'
> > AdminClient tool, and how to write a client for it (including which jar
> > files I included).
> >
> > I already have the basic contents for these explanatory documents, but
> > they aren't yet formatted for the wiki and at present they are written
> > more in terms of "I did this, then I did that" which may be odd reading
> > for you or anyone else.
> >
> > > As the Client side of the SOAP for AXIS, which JAR Files i should use
> > and
> > > include to my Project to implement the Function?
> > >From my personal documentation:
> > "When turning the project into using Web Services, needed to add this to
> > the CLIENT PACKAGE's buildpath:
> > - commons-discovery.jar
> > - commons-logging.jar
> > - saaj.jar
> > - wsdl.jar"
> > The above files can be found in $GSDLHOME/web/WEB-INF/classes, where
> > $GSDLHOME is your Greenstone 3 home folder.
> >
> >
> > > Did the developer of your team create any WSDL for the SOAP Services
> > > before. The Files will be very useful and helpful for me.
> > If you want to work with the existing web service (I like it too), then
> > the one already available does indeed have a WSDL.
> > First you need to deploy the localsite with (assuming you are working on
> > Linux and have an x-term open):
> > $ ant stop;
> > $ ant deploy-localsite
> > $ ant start
> > (You can also deploy for remote sites, I think.)
> > Next, you set your web server to point to
> > http://localhost:8080/greenstone3/services
> > Or whatever site you deployed the services on, and whatever port number
> > your server is listening on for Greenstone requests.
> > The WSDL file you want is at the top, for "localsite", method "process".
> >
> > Only one method has been deployed as a web service. It is called process
> > and its usage is explained in the Greenstone 3 Developer's Manual at
> > http://www.greenstone.org/docs/greenstone3/manual.pdf
> > In particular, you would want to look at pages 35-51 (and also maybe 52
> > and 53).
> >
> > Regards,
> > Anupama
> >
> > > Hi Quan,
> > > If i want to use the SOAP Protocol for my Implementation which
> > communicate
> > > with 3.0 remote, which product of the markt i should use? Which one of
> > > SOAP was used for GSDL? Is the AXIS of Apache?
> > >
> > > As the Client side of the SOAP for AXIS, which JAR Files i should use
> > and
> > > include to my Project to implement the Function?
> > >
> > > axis.jar+log4j.jar+xerces.jar+commons-discovery.jar
> > >
> > > I'm searching some examples and tutorial for the SOAP and AXIS with
> the
> > > client side.
> > >
> > > Did the developer of your team create any WSDL for the SOAP Services
> > > before. The Files will be very useful and helpful for me.
> > >
> > > Regards
> > >
> > > Feng Wang
> > >
> > > -------- Original-Nachricht --------
> > >> Datum: Thu, 20 Mar 2008 16:50:23 +1300 (NZDT)
> > >> Von: qq6@cs.waikato.ac.nz
> > >> An: "feng wang" <wangfeng77@gmx.de>
> > >> CC: greenstone3@list.scms.waikato.ac.nz
> > >> Betreff: Re: [greenstone-users] how to build Application which can
> > >> search , get and manage the
> > >> Object in GSDL remote
> > >
> > >> Hi Feng Wang
> > >>
> > >> > Hi Quan,
> > >> >
> > >> > Sorry, it's my fault by writing the mail. I used the "gs3-setup.sh"
> > >> file
> > >> > the command source in GSDL Home directory.
> > >> >
> > >> > Should i give the java path by installing the GSDL from the source
> > >> files??
> > >> > ant install +????
> > >>
> > >> No, you shouldn't. The java path will be automatically added to the
> > >> environment variables after run the source command. "ant install"
> will
> > >> look for the corresponding variables, such as Greenstone3 home
> > >> directory,
> > >> or java, etc, from the local environment setting during installing
> > >> Greenstone3.
> > >>
> > >> >
> > >> > Regards
> > >> > Feng Wang
> > >> >
> > >> >
> > >> > -------- Original-Nachricht --------
> > >> >> Datum: Tue, 18 Mar 2008 07:41:12 +1300 (NZDT)
> > >> >> Von: qq6@cs.waikato.ac.nz
> > >> >> An: "feng wang" <wangfeng77@gmx.de>
> > >> >> CC: greenstone3@list.scms.waikato.ac.nz
> > >> >> Betreff: Re: [greenstone-users] how to build Application which can
> > >> >> search , get and manage the
> > Object
> > >> in
> > >> >> GSDL remote
> > >> >
> > >> >> Hi Feng Wang
> > >> >>
> > >> >> > Hi Quan,
> > >> >> >
> > >> >> > I have tried to install the GSDL 3 of the source code version
> > again
> > >> in
> > >> >> > Linux. As you purposed, I added and changed the environment of
> > >> >> JAVA_HOME
> > >> >> > and PATH. And typed the □source gs3-setup.pl□
> > Successfully
> > >> >> executed
> > >> >> > with the □pl□ file.
> > >> >>
> > >> >> "gs3-setup.sh"(not gs3-setup.pl) should be sourced under the
> > >> Greenstone3
> > >> >> home directory.
> > >> >>
> > >> >> >
> > >> >> > But it appeared the same exception as before!
> > >> >> > file:/home/fwang/greenstone-3.03/build.xml:94: Unexpected
> element
> > >> >> > "condition"
> > >> >> >
> > >> >> > One Point I must tell you that as a normal user in server, I
> > >> don□t
> > >> >> have
> > >> >> > the right to change the environment in /etc/profile. So I
> changed
> > >> the
> > >> >> file
> > >> >> > □.bashrc□ of my Home Directory. It□s the only
> > point
> > >> that
> > >> >> I don□t
> > >> >> > be sure whether I did right.
> > >> >> >
> > >> >> You may ask your administrator for the solution of this issue.
> > >> >>
> > >> >> > The other question is about my Implementation. You knew that I
> > >> must
> > >> >> write
> > >> >> > a GUI Program which can access and manage the GSDL remote. We
> knew
> > >> >> that
> > >> >> > the GSDL3 supports the SOAP Protocol for the communication
> between
> > >> the
> > >> >> > GSDL and other Program like my GUI Program as the third
> > >> party-program.
> > >> >> > Can the SOAP be used in my Program to communicate to the GSDL3?
> > >> >> > SOAP+Servlet/JSP?
> > >> >>
> > >> >> Yes, it is the way how Greenstone3 was designed.
> > >> >>
> > >> >> >
> > >> >> > Idea:
> > >> >> > My GUI Program (Client) can write the request with XML File in
> > SOAP
> > >> >> Format
> > >> >> > and send it to the Receptionist with the different Messages and
> > >> wait
> > >> >> the
> > >> >> > response from the servelet in GSDL 3 Server? Is it impossible???
> > >> >> Enable
> > >> >> to
> > >> >> > write a remote Program like this and support all functions what
> > the
> > >> >> GLI
> > >> >> > have?
> > >> >>
> > >> >> I think it can be done.
> > >> >> >
> > >> >> > Regards
> > >> >> > Feng Wang
> > >> >> >
> > >> >> > PS: what the different between
> greenstone3@list.scms.waikato.ac.nz
> > >> and
> > >> >> > greenstone-users@list.scms.waikato.ac.nz
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >> > -------- Original-Nachricht --------
> > >> >> >> Datum: Tue, 11 Mar 2008 10:07:06 +1300 (NZDT)
> > >> >> >> Von: qq6@cs.waikato.ac.nz
> > >> >> >> An: "feng wang" <wangfeng77@gmx.de>
> > >> >> >> CC: greenstone3@list.scms.waikato.ac.nz
> > >> >> >> Betreff: Re: [greenstone-users] how to build Application which
> > can
> > >> >> >> search , get and manage the
> Object
> > >> in
> > >> >> GSDL
> > >> >> >> remote
> > >> >> >
> > >> >> >> Hi Feng Wang
> > >> >> >>
> > >> >> >> Greenstone3.03 Linux binary installer has binded a JVM. If no
> JVM
> > >> >> (above
> > >> >> >> 1.4) could be found from the local machine during installation,
> > >> the
> > >> >> >> installer will use the binded JVM instead. If you want to use
> the
> > >> JDK
> > >> >> or
> > >> >> >> JRE installed on the local machine, please add the JDK home
> > >> >> (something
> > >> >> >> like: /opt/jdk1.4, --JDK home folder) or JRE path (something
> > like:
> > >> >> >> opt/jre1.4/bin, --JRE bin folder) to the environment path.
> > >> >> >>
> > >> >> >> You wrote:
> > >> >> >> >But I can’t remove the order of java in our server.
> > >> >> >>
> > >> >> >> I think you probably can modify the java environment setting
> even
> > >> on
> > >> >> >> your
> > >> >> >> server, like defining JAVAHOME, add java into path,etc.
> > >> >> >>
> > >> >> >> You wrote:
> > >> >> >> > So I thought that I shall install the GSDL from source file
> > with
> > >> >> ant.
> > >> >> >> > Typing the “ant installâ€□ and searching
> > the
> > >> >> right target in
> > >> >> >> the
> > >> >> >> > build.xml. But the exception was
> > >> >> >> > file:/home/fwang/greenstone-3.03/build.xml:94: Unexpected
> > >> element
> > >> >> >> > "condition".
> > >> >> >>
> > >> >> >> Please run "source gs3-setup.sh" to setup the greenstone3
> > >> environment
> > >> >> >> first before run "ant install".
> > >> >> >>
> > >> >> >> > I think, I should modify the build.xml or build.properties.
> But
> > >> I
> > >> >> >> don’t
> > >> >> >> > know, how can I do? Please help me.
> > >> >> >>
> > >> >> >> No, you don't need to modify the build.xml file.
> > >> >> >>
> > >> >> >> >
> > >> >> >> > Ps: i got the web.xml and will try to reconfigurate it again
> to
> > >> >> enable
> > >> >> >> the
> > >> >> >> > remote GLI. And the Collector is remote GLI??
> > >> >> >>
> > >> >> >> Collector is available only in Greenstone2, it wasn't
> implemented
> > >> in
> > >> >> >> Greenstone3.
> > >> >> >>
> > >> >> >> Regards
> > >> >> >> Quan
> > >> >> >>
> > >> >> >> > Hi Quan,
> > >> >> >> >
> > >> >> >> > Thanks for your incredible Support. And sorry that I
> > >> disappeared
> > >> >> for
> > >> >> >> a
> > >> >> >> > while.
> > >> >> >> >
> > >> >> >> > I have tried to install the GSDL 3 in our Server of The
> > >> University
> > >> >> >> > Duisburg in two ways. From the binary file and from the
> source.
> > >> >> >> >
> > >> >> >> > By installing with the Binary File the erro is :
> > >> >> >> >
> > >> >> >> > This application requires a Java Run Time
> Environment
> > >> >> (JRE)
> > >> >> >> > to run. Searching for one on your computer was not
> > >> >> >> successful.
> > >> >> >> > Please use the command line switch -is:javahome to
> > >> >> specify
> > >> >> >> > a valid JRE. For more help use the option
> -is:help.
> > >> >> >> >
> > >> >> >> > We have the Java from 1.4 to 1.6 in the Server. But the
> Default
> > >> >> >> Version
> > >> >> >> is
> > >> >> >> > 1.4.2. So I tried to get the command with path of the current
> > >> java.
> > >> >> >> The
> > >> >> >> > Install File said still, that it can’t find the
> JRE
> > for
> > >> >> >> Installing
> > >> >> >> the
> > >> >> >> > GSDL. I had the same problem, while I tried to install the
> GSDL
> > >> in
> > >> >> my
> > >> >> >> > Linux. At that time I moved the java the order of /opt and
> the
> > >> >> problem
> > >> >> >> is
> > >> >> >> > then solved. But I can’t remove the order of java
> in
> > >> our
> > >> >> server.
> > >> >> >> It’s
> > >> >> >> > not the most important problem, because I must install the
> GSDL
> > >> >> remote
> > >> >> >> by
> > >> >> >> > using the Putty in console version.
> > >> >> >> >
> > >> >> >> > So I thought that I shall install the GSDL from source file
> > with
> > >> >> ant.
> > >> >> >> > Typing the “ant installâ€□ and searching
> > the
> > >> >> right target in
> > >> >> >> the
> > >> >> >> > build.xml. But the exception was
> > >> >> >> > file:/home/fwang/greenstone-3.03/build.xml:94: Unexpected
> > >> element
> > >> >> >> > "condition".
> > >> >> >> >
> > >> >> >> > I think, I should modify the build.xml or build.properties.
> But
> > >> I
> > >> >> >> don’t
> > >> >> >> > know, how can I do? Please help me.
> > >> >> >> >
> > >> >> >> > Regards
> > >> >> >> >
> > >> >> >> > Feng wang
> > >> >> >> >
> > >> >> >> >
> > >> >> >> > Ps: i got the web.xml and will try to reconfigurate it again
> to
> > >> >> enable
> > >> >> >> the
> > >> >> >> > remote GLI. And the Collector is remote GLI??
> > >> >> >> >
> > >> >> >> >
> > >> >> >> > -------- Original-Nachricht --------
> > >> >> >> >> Datum: Tue, 12 Feb 2008 10:59:36 +1300 (NZDT)
> > >> >> >> >> Von: qq6@cs.waikato.ac.nz
> > >> >> >> >> An: wangfeng77@gmx.de
> > >> >> >> >> CC: greenstone-users@list.scms.waikato.ac.nz
> > >> >> >> >> Betreff: Re: [greenstone-users] how to build Application
> which
> > >> can
> > >> >> >> >> search , get and manage the Object
> in
> > >> >> GSDL
> > >> >> >> >> remote
> > >> >> >> >
> > >> >> >> >> Hi Feng Wang
> > >> >> >> >>
> > >> >> >> >> The web.xml file is attached with this mail. please replace
> > the
> > >> >> same
> > >> >> >> >> file
> > >> >> >> >> under GREENSTONE3/packages/tomcat/conf.
> > >> >> >> >>
> > >> >> >> >> The CGI API is provided in a .jar file that you need to
> rename
> > >> >> >> >>
> > GREENSTONE3/packages/tomcat/server/lib/servlets-cgi.renametojar
> > >> to
> > >> >> >> >> servlets-cgi.jar.
> > >> >> >> >>
> > >> >> >> >> Please let me know any progress
> > >> >> >> >>
> > >> >> >> >> Quan
> > >> >> >> >> >
> > >> >> >> >> >
> > >> >> >> >> >
> > >> >> >> >> >
> > >> >> >> >> >> Hi
> > >> >> >> >> >> Sorry, that i send the Mail so later.
> > >> >> >> >> >> Here is the web.xml and err messenger is:
> > >> >> >> >> >>
> > >> >> >> >> >> Exception in thread "launch browser"
> > >> >> >> java.lang.NullPointerException
> > >> >> >> >> >> at
> > >> >> >> >> >>
> > >> >> >>
> > >> org.greenstone.server.BrowserLauncher.<init>(BrowserLauncher.java:26)
> > >> >> >> >> >> at
> > >> >> >> >> org.greenstone.server.Server.launchBrowser(Server.java:149)
> > >> >> >> >> >> at
> > >> >> >> >> >>
> > >> org.greenstone.server.ServerControl$5.run(ServerControl.java:210)
> > >> >> >> >> >> at java.lang.Thread.run(Thread.java:595)
> > >> >> >> >> >> I installed the GSDL under /opt/Greenstone3
> > >> >> >> >> >> Hope, you can help me!
> > >> >> >> >> >> thanks
> > >> >> >> >> >> Regards
> > >> >> >> >> >> Feng Wang
> > >> >> >> >> >>
> > >> >> >> >> >>
> > >> >> >> >> >> -------- Original-Nachricht --------
> > >> >> >> >> >>> Datum: Tue, 29 Jan 2008 12:12:51 +1300 (NZDT)
> > >> >> >> >> >>> Von: qq6@cs.waikato.ac.nz
> > >> >> >> >> >>> An: "feng wang" <wangfeng77@gmx.de>
> > >> >> >> >> >>> CC: greenstone-users@list.scms.waikato.ac.nz
> > >> >> >> >> >>> Betreff: Re: [greenstone-users] how to build Application
> > >> which
> > >> >> >> can
> > >> >> >> >> >>> search , get and manage the Object in
> GSDL
> > >> >> remote
> > >> >> >> >> >>
> > >> >> >> >> >>> Hi Feng
> > >> >> >> >> >>>
> > >> >> >> >> >>> Could you send me the
> > >> greenstone3/packages/tomcat/conf/web.xml
> > >> >> >> file?
> > >> >> >> >> >>>
> > >> >> >> >
> > >> >> >> > --
> > >> >> >> > Psssst! Schon vom neuen GMX MultiMessenger gehört?
> > >> >> >> > Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> > >> >> >> >
> > >> >> >> >
> > >> >> >>
> > >> >> >
> > >> >> > --
> > >> >> > GMX startet ShortView.de. Hier findest Du Leute mit Deinen
> > >> Interessen!
> > >> >> > Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx
> > >> >> >
> > >> >>
> > >> >
> > >> > --
> > >> > Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free
> > >> Games!
> > >> > http://games.entertainment.gmx.net/de/entertainment/games/free
> > >> >
> > >>
> > >
> > > --
> > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > Ideal f□r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> > >
> > > _______________________________________________
> > > greenstone-users mailing list
> > > greenstone-users@list.scms.waikato.ac.nz
> > > https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
> > >
> >
>
> --
> Psssst! Schon vom neuen GMX MultiMessenger geh□rt?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users

--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal f□r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer