That's interesting. I get exactly the same problem when using that client with my institution's installation of Intralibrary, even though the XML of the service document validates fine and looks ok to my semi-tutored eyes. This perhaps indicates that the problem is with the client rather than the repository...
Fred www.fredriley.org.uk From: Jingli Lu [mailto:jenny.jingli...@gmail.com] Sent: 17 August 2014 04:54 To: sword-app-tech@lists.sourceforge.net Subject: [sword-app-tech] Deposit example.zip get error: Unable to parse the XML Hi All, I am trying my first deposit to Dspace Demo Repository using SWORD Demonstrator Client (download and build sword-common-1.1.zip) . I can get service document fine, but when I do post file, I get error "There was an error accessing the resource. Unable to parse the XML( ..........)" In the post document GUI, the setup is: Destinations: dspacedemo+sub...@gmail.com:******http://demo.dspace.org/sword/deposit/10673/2 File: C:\Downloads\SWORD\example.zip File type: application/zip X-Packaging: http://purl.org/net/sword-types/METSDSpaceSIP I have also tried using the following command curl -i --data-binary "@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" --user "dspacedemo+sub...@gmail.com:dspace" http://demo.dspace.org/sword/deposit/10673/2 But got an error: HTTP/1.1 500 Internal Server Error <html><head><title>Apache Tomcat/7.0.29 - Error report</title><style><! t-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;f 22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-c D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:whit und-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans- or:black;background-color:white;} B {font-family:Tahoma,Arial,sans-seri hite;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif; d:white;color:black;font-size:12px;}A {color : black;}A.name {color : b {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1>< 1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> p><p><b>description</b> <u>The server encountered an internal error () ented it from fulfilling this request.</u></p><HR size="1" noshade="nos >Apache Tomcat/7.0.29</h3></body></html> C:\Downloads\SWORD>curl -i --data-binary "@example.zip" -H "Content-Dis filename=myDSpaceMETSItem.zip" -H "Content-Type: application/zip" kaging: http://purl.org/net/sword-types/METSDSpaceSIP" -H "X-No-Op: H "X-Verbose: true" --user "dspacedemo+sub...@gmail.com:dspace" http: dspace@localhost:8080/sword/deposit/123456789/2 curl: (7) Failed to connect to localhost port 8080: Connection refused. Any idea what seems to be problem? Thanks in advance. Jingli
------------------------------------------------------------------------------
_______________________________________________ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech