Hi Peter,

Try changing the packaging type header to:
 
      http://purl.org/net/sword-types/METSDSpaceSIP

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



On 10/12/2011, at 2:04 AM, Wonderen, P.M.G. van wrote:

> Can somebody explain me why I get a unsupported mediatype message when 
> sending the following statement to the DSpace demo website?:
>  
> curl -i --http1.0 --data-binary "@example.zip"     -H "Content-Disposition: 
> filename=example.zip"     -H "Content-Type: application/zip"   -H 
> "X-Packaging: http://purl.org/net/sword/package/METSDSpaceSIP";  --user 
> p.v.wonde...@ubvu.vu.nl:qwertyhttp://demo.dspace.org/sword/deposit/10673/44693
>  
>  
> I use the example.zip file in 
> http://sword-app.svn.sourceforge.net/viewvcsword-app\sss\trunk.
>  
> The return message is:
> HTTP/1.1 415 Unsupported Media Type
> Server: Apache-Coyote/1.1
> Content-Type: application/atom+xml;charset=UTF-8
> Date: Fri, 09 Dec 2011 12:56:05 GMT
> Connection: close
>  
> <sword:error xmlns:atom="http://www.w3.org/2005/Atom"; 
> xmlns:sword="http://purl.org/net/sword/"; 
> href="http://purl.org/net/sword/error/ErrorContent";><atom:summary>Unacceptable
>  packaging type in deposit 
> request:http://purl.org/net/sword/package/METSDSpaceSIP</atom:summary><atom:title>ERROR</atom:title><atom:updated>2011-12-09T12:56:05.882Z</atom:updated><sword:userAgent>curl/7.19.7
>  (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 
> libidn/1.15</sword:userAgent></sword:error>
>  
> Also when I install Dspace Sword locally on Ubuntu using Tomcat I get the 
> same error message.
>  
> Kind regards,
>  
> Peter van Wonderen
>  
> VU University
> Amsterdam
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point of 
> discussion for anyone considering optimizing the pricing and packaging model 
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/_______________________________________________
> sword-app-tech mailing list
> sword-app-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sword-app-tech



------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech

Reply via email to