Larry - Thanks for the helpful response. I've still been unable to do a lookup or a get, but I'm concentrating right now on walking through the hierarchy to learn what turns up and what kind of properties I'll find. When I get comfortable with that, I'll re-read your message and try again.
- Rick -----Original Message----- From: Larry Stone [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2008 4:54 PM To: Rick Runyan Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] LNI/WebDAV : GET returns 501 GET only works on Items and Bitstreams, so if you get the resource path to a Bitstream from PROPFIND (depth=1) on an Item, then you ought to be able to do a GET on it and receive its contents. This path looks like you've traversed some communities and collections: > http://[server]:8080/lni/dav/dso_123456789%241/dso_123456789%242/dso_123 456789%243 You can also get a resource URL by doing a "lookup" on a Handle, e.g. GET on http://[server]:8080/lni/dav/lookup/handle/123456789/42 returns a Location: header with the URL. I don't think it works on Bitstreams, though. Anyway, if you do a PROPFIND on that resource you're trying to GET, look at the value for "type" (in the "http://www.dspace.org/xmlns/dspace" namespace). It'll be an empty element for the DSpace object type, either <collection/>, <community/>, <item/>, <bitstream/> Typically, the Bitstream resources have a path ending in ..../bitstream_{n}.{suffix}, e.g. .../bitstream_3.pdf So, I think the problem here is that you've got a resource for which GET isn't implemented. For some sketchy doc which is unfortunately the best available, see http://web.mit.edu/lcs/www/lni/ -- Larry > I've finally figured out how to hook up a .NET app to LNI and am running > some exploratory tests, using straight HTTP/DAV rather than SOAP. =20 > > Alas, GET doesn't seem to work. I've done a propfind call to get URIs > for the bitstreams in a collection, but when I try to GET one of them, I > get > > =20 > > System.ApplicationException: Error trying to GET > http://[server]:8080/lni/dav/dso_123456789%241/dso_123456789%242/dso_123 > 456789%243 --->=20 > > System.Net.WebException: The remote server returned an error: (501) Not > Implemented. > > at System.Net.HttpWebRequest.GetResponse() > > =20 > > I am unfamiliar with Axis web services, so I'm having to learn > everything as I go, which slows me down a lot. > > This entry in server-config.wsdd listing "allowedMethods" looks > suspicious to me > > <service name=3D"DSpaceLNI" provider=3D"java:RPC"> > > <parameter name=3D"allowedMethods" value=3D"propfind proppatch = > lookup > copy"/> > > <parameter name=3D"className" > value=3D"org.dspace.app.dav.LNISoapServlet"/> > > </service> > > But the web.xml file has a different class > (org.dspace.app.dav.DAVServlet) set up to respond to /dav URIs, so I > suspect that's not my problem. > > =20 > > - Rick > > =20 > > =20 > > > ------_=_NextPart_001_01C8C190.AFE31B16 > Content-Type: text/html; > charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" = > xmlns:w=3D"urn:schemas-microsoft-com:office:word" = > xmlns=3D"http://www.w3.org/TR/REC-html40"> > > <head> > <meta http-equiv=3DContent-Type content=3D"text/html; = > charset=3Dus-ascii"> > <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> > <style> > <!-- > /* Font Definitions */ > @font-face > {font-family:"Californian FB"; > panose-1:2 7 4 3 6 8 11 3 2 4;} > /* Style Definitions */ > p.MsoNormal, li.MsoNormal, div.MsoNormal > {margin:0in; > margin-bottom:.0001pt; > font-size:12.0pt; > font-family:"Times New Roman";} > a:link, span.MsoHyperlink > {color:blue; > text-decoration:underline;} > a:visited, span.MsoHyperlinkFollowed > {color:purple; > text-decoration:underline;} > span.EmailStyle17 > {mso-style-type:personal-compose; > font-family:"Californian FB"; > color:windowtext; > font-weight:normal; > font-style:normal; > text-decoration:none none;} > @page Section1 > {size:8.5in 11.0in; > margin:1.0in 1.25in 1.0in 1.25in;} > div.Section1 > {page:Section1;} > --> > </style> > > </head> > > <body lang=3DEN-US link=3Dblue vlink=3Dpurple> > > <div class=3DSection1> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'>I’ve finally figured out how = > to hook > up a .NET app to LNI and am running some exploratory tests, using = > straight > HTTP/DAV rather than SOAP. <o:p></o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'>Alas, GET doesn’t seem to > work. I’ve done a propfind call to get URIs for the = > bitstreams in a > collection, but when I try to GET one of them, I = > get<o:p></o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'><o:p> </o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'>System.ApplicationException: Error = > trying > to GET = > http://[server]:8080/lni/dav/dso_123456789%241/dso_123456789%242/dso_123 4= > 56789%243 > ---> <o:p></o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'>System.Net.WebException: The remote = > server > returned an error: (501) Not Implemented.<o:p></o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'> at > System.Net.HttpWebRequest.GetResponse()<o:p></o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'><o:p> </o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'>I am unfamiliar with Axis web = > services, so > I’m having to learn everything as I go, which slows me down a = > lot.<o:p></o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'>This entry in server-config.wsdd = > listing “allowedMethods” > looks suspicious to me<o:p></o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'> <service > name=3D"DSpaceLNI" = > provider=3D"java:RPC"><o:p></o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'> <parameter > name=3D"allowedMethods" value=3D"propfind proppatch = > lookup > copy"/><o:p></o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'> <parameter > name=3D"className" > value=3D"org.dspace.app.dav.LNISoapServlet"/><o:p></o:p></s p= > an></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian = > FB"'> </service><o:p></o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'>But the web.xml file has a = > different class > (org.dspace.app.dav.DAVServlet) set up to respond to /dav URIs, so I = > suspect > that’s not my problem.<o:p></o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D2 face=3D"Californian FB"><span = > style=3D'font-size: > 11.0pt;font-family:"Californian FB"'><o:p> </o:p></span></font></p> > > <p class=3DMsoNormal><font size=3D3 face=3D"Californian FB"><span = > style=3D'font-size: > 12.0pt;font-family:"Californian FB"'>- Rick</span></font><font size=3D2 > face=3DArial><span = > style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></ p= > > > > <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = > style=3D'font-size: > 12.0pt'> </span><o:p></o:p></font></p> > > <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = > style=3D'font-size: > 12.0pt'><o:p> </o:p></span></font></p> > > </div> > > </body> > > </html> > > ------_=_NextPart_001_01C8C190.AFE31B16-- > > > --===============1827198162== > Content-Type: text/plain; charset="us-ascii" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > --===============1827198162== > Content-Type: text/plain; charset="us-ascii" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > _______________________________________________ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-tech > > --===============1827198162==-- > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech