Hi Vincent,

The best option might be look in your dspace.log file, as it will likely 
explain why it is unhappy with the package and consequently returning the HTTP 
415.

What headers are you sending along with your file?  I think DSpace first looks 
at the headers to decide if it will accept the package, before looking at the 
package itself to ensure that it matches the headers that described it.

Thanks,


Stuart


On 8/07/2011, at 8:17 PM, Neil Taylor [nst] wrote:

> Dear Vincent, 
> 
> It is a little while since I was involved with this project, but looking at 
> the error message I think it is something that is returned from the 
> repository. If so, then I am cc'ing this to the development list so that the 
> people that worked on the DSpace sword plug-in might be able to offer some 
> help. 
> 
> The error message states that the type of package is 'text', which might be a 
> little strange if you are submitting a ZIP file. 
> 
> Have you been able to submit any of the test packages available from the 
> swordapp.org website?  This might help you to see which types of packages 
> have been tested. 
> 
> http://swordapp.org/sword-v1/sword-v1-clients-and-demonstrator-repositories/
> 
> Regards, 
> 
> Neil
> 
> On 7 Jul 2011, at 14:07, Vincent wrote:
> 
>> Hi Neil
>> 
>> I am currently working on something about SWORD, and I find the sword 
>> demonstration client written by you. It is a very good one, well organized. 
>> But somehow I can not use it to deposit to the Dspace I installed on my pc. 
>> The error message shows that "code:415, Unsupported Media Type"(see the 
>> attachment). This indicates something wrong with the server accepting the 
>> file, but I can deposit it to my Dspace if I use the browser to login and 
>> deposit.
>> 
>> I don't know whether you have met across this kind of problem before. Could 
>> you offer some help?
>> 
>> Besides, what kind of file is OK for deposit, you know, the METS package in 
>> a .zip file or normal zip file will do? I doubt this maybe one of the 
>> reasons, although I tried one METS package without success.
>> 
>> 
>> Thanks~
>> 
>> Vincent
>> BNU
>> 
>> 
>> 
>> -- 
>> Best wishes~
>> <1.bmp>
> 
> --
> Neil Taylor
> 01970 621528 - n...@aber.ac.uk - http://users.aber.ac.uk/nst/
> 
> Department of Computer Science / Adran Gyfrifiadureg
> Aberystwyth University / Prifysgol Aberystwyth
> Aberystwyth, Ceredigion, SY23 3DB
> 
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security 
> threats, fraudulent activity, and more. Splunk takes this data and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> sword-app-tech mailing list
> sword-app-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sword-app-tech

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 (0)9 373 7599 x81928


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech

Reply via email to