Thanks Richard. I’m going to try what you said..

Thanks a lot

 

Arucas Chacón de Frutos

Apoyo a Sistemas Informáticos

Unidad de Recursos de Información Científica para la Investigación - Unit of
Information Resources for Research

Consejo Superior de Investigaciones Científicas - Spanish National Research
Council

C/Joaquín Costa 22; Desp. 314

28002 MADRID

ESPAÑA-SPAIN

Telf. 34-91-5681671; Ext. Interna 991671

Fax: 91 568 16 81

e-mail:  <mailto:arucas.cha...@bib.csic.es> arucas.cha...@bib.csic.es

 <http://bibliotecas.csic.es> http://bibliotecas.csic.es

 

De: Richard Jones [mailto:rich...@cottagelabs.com] 
Enviado el: jueves, 19 de enero de 2012 11:26
Para: Arucas Chacón
CC: Stuart Lewis; sword-app-tech@lists.sourceforge.net
Asunto: Re: [sword-app-tech] Sowrd deposit without a client

 

Hi Arucas,

 

It's been a while since I looked at the Swordv1 client, but it looks like
this is the class to use:

 

http://sword-app.svn.sourceforge.net/viewvc/sword-app/java-common/trunk/src/
main/java/org/purl/sword/client/Client.java?revision=453
<http://sword-app.svn.sourceforge.net/viewvc/sword-app/java-common/trunk/src
/main/java/org/purl/sword/client/Client.java?revision=453&view=markup>
&view=markup

 

You can create an instance of the Client object, and then use postFile to
send content to the server.

 

Cheers,

 

Richard

 

On Thu, Jan 19, 2012 at 10:12 AM, Arucas Chacón <arucas.cha...@bib.csic.es>
wrote:

Hi Richard,

 

That’s the question. I meant I can’t use the availbale  clients (SWORD
Client web, Desktop client) as the process of depositing  has to be
integrated in my web interface, so I don’t know how to addapt The SWORD
Client web (for example) to integrate it in my Java Project.

What method does the deposit ? I’m looking the org.purl.sword.client.Client
class and its method postFile() but I’m not sure, Am I in the right way?

Thanks a lot. I’m a little bit lost.

 

Arucas Chacón de Frutos

Apoyo a Sistemas Informáticos

Unidad de Recursos de Información Científica para la Investigación - Unit of
Information Resources for Research

Consejo Superior de Investigaciones Científicas - Spanish National Research
Council

C/Joaquín Costa 22; Desp. 314

28002 MADRID

ESPAÑA-SPAIN

Telf. 34-91-5681671; Ext. Interna 991671

Fax: 91 568 16 81

e-mail:  <mailto:arucas.cha...@bib.csic.es> arucas.cha...@bib.csic.es

 <http://bibliotecas.csic.es> http://bibliotecas.csic.es

 

De: Richard Jones [mailto:rich...@cottagelabs.com] 
Enviado el: jueves, 19 de enero de 2012 11:00
Para: Arucas Chacón
CC: Stuart Lewis; sword-app-tech@lists.sourceforge.net


Asunto: Re: [sword-app-tech] Sowrd deposit without a client

 

Hi Arucas,

 

If you want to deposit without using a client, where are you doing the
deposit /from/?  

 

Cheers,

 

Richard

On Thu, Jan 19, 2012 at 8:23 AM, Arucas Chacón <arucas.cha...@bib.csic.es>
wrote:

Thanks Stuart, but I need sth in Java.
Our Project consists of depositing in our repository though SWORD. The idea
is doing a kind of integrated Client, but EasyDeposit is in php, is there
sth in Java?? Maybe sth like org.purl.sword.client.SWORDClient of Sword Web
Client, Am i right?
Thanks


Arucas Chacón de Frutos
Apoyo a Sistemas Informáticos
Unidad de Recursos de Información Científica para la Investigación - Unit of
Information Resources for Research
Consejo Superior de Investigaciones Científicas - Spanish National Research
Council

C/Joaquín Costa 22; Desp. 314
28002 MADRID
ESPAÑA-SPAIN
Telf. 34-91-5681671; Ext. Interna 991671
Fax: 91 568 16 81
e-mail: arucas.cha...@bib.csic.es
http://bibliotecas.csic.es

-----Mensaje original-----
De: Stuart Lewis [mailto:s.le...@auckland.ac.nz]
Enviado el: miércoles, 18 de enero de 2012 19:12
Para: Arucas Chacón
CC: <sword-app-tech@lists.sourceforge.net>
Asunto: Re: [sword-app-tech] Sowrd deposit without a client


Hi Arucas,

Would a command line tool such as curl do what you want?

curl -i --data-binary "@dspace-sword/example/example.zip" -H
"Content-Disposition: filename=myDSpaceMETSItem.zip"
    -H "Content-Type: application/zip" -H "X-Packaging:
http://purl.org/net/sword-types/METSDSpaceSIP";
    -H "X-No-Op: false" -H "X-Verbose: true"
http://dspace:dspace@localhost:8080/sword/deposit/123456789/2

Thanks,


Stuart Lewis
Digital Development Manager
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 <tel:%2B64%20%280%299%20373%207599%20x81928>  (0)9 373 7599 x81928



On 19/01/2012, at 12:45 AM, Arucas Chacón wrote:

> Hi everybody,
>
> In our Project  We need to deposit files without using a client, but we
are
> not sure which are the methods and clases to do it..
> Should I program sth like DummyServer and its doDeposit() method? We've
> already tried it by using code of Sword Web Client but I can't found out
the
> way to do it Works..
> Our enviornment is the following:
> DSpace 1.6.2
> SWORD 1.3
>
> Any suggestions?
>
> Thanks in advance
>
> Arucas Chacón de Frutos
> Apoyo a Sistemas Informáticos
> Unidad de Recursos de Información Científica para la Investigación - Unit
of
> Information Resources for Research
> Consejo Superior de Investigaciones Científicas - Spanish National
Research
> Council
> ESPAÑA-SPAIN
> e-mail: arucas.cha...@bib.csic.es
>
>
>
>
>
>
----------------------------------------------------------------------------
--
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> sword-app-tech mailing list
> sword-app-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sword-app-tech





----------------------------------------------------------------------------
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech

 

 

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech

Reply via email to