Dear Eddie, Thanks for your reply. I am not in fact using your client; I am using restlet instead http://www.restlet.org/ . However I checked your clients code, and I see that even for the ZIP file, it sets the MediaType to
"MediaType.TEXT_XML_TYPE" for any file type https://github.com/mediashelf/fedora-client/blob/master/fedora-client-core/src/main/java/com/yourmediashelf/fedora/client/request/Ingest.java Is this in fact what I have to do? Restlet is trying to set Content-Type "application/zip" by default. I believe I am setting the format correctly like this: http://my.fedora.server/fedora/objects/new?format=info%3Afedora%2Ffedora-system%3AATOMZip-1.1 (that is the url I POST the content to with content type application/xml) Regards, Nicholas W. On Mon, Apr 16, 2012 at 5:47 PM, Edwin Shin <[email protected]> wrote: > Works for me. Just added an explicit ingest test (with sample AtomZip > package) to fedora-client (which uses the REST API): > > > https://github.com/mediashelf/fedora-client/commit/243d94add0e656e6e14bc0fb0d26a8b1a39fe3c0 > > Are you correctly setting the format as > "info:fedora/fedora-system:ATOMZip-1.1"? > > -Eddie > > On 16 Apr 2012, at 9:36 PM, Nicholas W wrote: > >> Dear All, >> Looking at >> https://wiki.duraspace.org/display/FEDORA35/REST+API#RESTAPI-ingest >> it looks as though it should be possible to injest AtomZIP1.1 through >> the fedora RestAPI. Unless I have not understood correctly the format >> of an AtomZip injest file should be a ZIP file, containing the streams >> and a manifest. I have a zip file, and I believe it to be semantically >> correct for an AtomZip, but if I post it to >> >> http://my.fedora.server/fedora/objects/new?format=info%3Afedora%2Ffedora-system%3AATOMZip-1.1 >> >> I get the following error: >> >> Unsupported Media Type (415) - Unsupported Media Type >> >> The mediatype I am sending is: >> application/zip >> >> Interestingly the documentation for injest just talks about XML files, >> however here: >> >> http://www.fedora-commons.org/documentation/3.0/userdocs/digitalobjects/atom.html#formats.fatomz >> >> it does say it should be a zip file. >> >> Please let me know what I am doing wrong. >> >> Thanks a lot, >> Regards, >> Nicholas W. >> >> ------------------------------------------------------------------------------ >> For Developers, A Lot Can Happen In A Second. >> Boundary is the first to Know...and Tell You. >> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! >> http://p.sf.net/sfu/Boundary-d2dvs2 >> _______________________________________________ >> Fedora-commons-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > Fedora-commons-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
