---------- Forwarded message ----------
From: Rajshekhar Pandey <[email protected]>
Date: Sat, Feb 6, 2010 at 12:56 PM
Subject: Re: [Dspace-tech] How to deposit items using SWORD
To: Stuart Lewis <[email protected]>


Hi, Stuart,

When I tried to deposit the item using SWORD application on Facebook to the
demo repository of DSpace, it give me error as

Fatal error: Uncaught exception 'Exception' with message 'Error parsing
response entry (String could not be parsed as XML)' in /var/www/
fb.swordapp.org/swordapp-php-library/swordappclient.php:118 Stack trace: #0
/var/www/fb.swordapp.org/htdocs/deposit/process/deposit.php(35):
SWORDAPPClient->deposit('http://dspace.s...', 'rajshek...@webi...',
'rajshekhar', 'rajshek...@webi...', '/var/www/fb.swo...',
'http://purl.org...', 'application/zip') #1 {main} thrown in /var/www/
fb.swordapp.org/swordapp-php-library/swordappclient.php on line 118

I can download the srvicedocument but cannot deposit the item on any
instance of dspace.
Even on my local instance, I found problem that I cannot deposit the file.
This information I got from Debug tab

 INFO [org.apache.commons.httpclient.auth.AuthChallengeProcessor] basic
authentication scheme selected
 INFO [org.apache.commons.httpclient.auth.AuthChallengeProcessor] basic
authentication scheme selected
 INFO [org.purl.sword.client.Client] Checking the status code: 415
 INFO [org.purl.sword.base.DepositResponse] <?xml version="1.0"
encoding="UTF-8"?>
<sword:error href="http://purl.org/net/sword/error/ErrorContent";
xmlns:atom="http://www.w3.org/2005/Atom"; xmlns:sword="
http://purl.org/net/sword/";>
   <atom:summary type="text">Unacceptable content type in deposit request:
</atom:summary>
   <atom:title type="text">ERROR</atom:title>
   <atom:updated>2010-02-06T12:26:17.203Z</atom:updated>
   <sword:userAgent>CASIS Test Client</sword:userAgent>
</sword:error>

Thanks.


On Fri, Feb 5, 2010 at 10:43 PM, Stuart Lewis <[email protected]>wrote:

> Hi Rajshekhar,
>
> > I have implemented SWORD with my DSpace 1.5.2.
> >
> > When I use http://localhost:8080/sword/deposit/123456789/2 to deposit
> the item in browser it show error 501.
> > I have also tried to deposit the file using GUI based desktop application
> downloaded from sourceforge.net for SWORD application.
> > it give error as
> > 2010-02-05 19:16:01,906 ERROR org.dspace.sword.SWORDMETSIngester @ caught
> exception:
> > org.dspace.content.packager.PackageValidationException: No METS Manifest
> found (filename=mets.xml).  Package is unacceptable.
> >
> > What should I send in X-Packing?
>
> X-Packaging (not X-Packing) should be set to
> http://purl.org/net/sword-types/METSDSpaceSI
>
> If you have access to a unix command line, try:
>
> curl --basic --user "[email protected]:your-password" -i --data-binary
> "@/path/to/example.zip" -H "Content-Type: application/zip" -H "X-Packaging:
> http://purl.org/net/sword-types/METSDSpaceSIP"; -vvv
> http://localhost:8080/sword/deposit/123456789/2
>
> Thanks,
>
>
> Stuart Lewis
> IT Innovations Analyst and Developer
> Te Tumu Herenga The University of Auckland Library
> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
> Ph: 64 9 373-7599 x81928
> http://www.library.auckland.ac.nz/
>
>


-- 
Regards,
Rajshekhar Pandey
Jr. Software Engineer
Webinito Networks.



-- 
Regards,
Rajshekhar Pandey
Jr. Software Engineer
Webinito Networks.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to