Just an addition to my previous post. I used Fiddler to create an HTTP
PROPFIND request for the server in question and this returned a
resourcetype fine, so now even more confused (this is based on requests
that IE sent, so aren't guaranteed to match the Slide format):

Request
-------
PROPFIND /User1 HTTP/1.1
Content-Language: en-us
Accept-Language: en-gb, en-us;q=0.2
Content-Type: text/xml
Translate: f
Depth: 0
User-Agent: Microsoft Data Access Internet Publishing Provider DAV
Proxy-Connection: Keep-Alive
Pragma: no-cache
Authorization: Basic <snipped>
Host: <snipped>
Content-Length: 169

<?xml version="1.0" encoding="UTF-8" ?>
<a:propfind xmlns:a="DAV:"
xmlns:b="urn:schemas-microsoft-com:datatypes">
<a:prop>
<a:resourcetype/>
</a:prop>
</a:propfind>

Response
--------
HTTP/1.1 207 Multi-Status
Date: Wed, 21 Dec 2005 16:08:21 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Location: http://<snipped>/User1/
Content-Type: text/xml
Transfer-Encoding: chunked

155
<?xml version="1.0"?><a:multistatus
xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" xmlns:c="xml:"
xmlns:a="DAV:"><a:response><a:href>http://<snipped>/User1/</a:href><a:pr
opstat><a:status>HTTP/1.1 200
OK</a:status><a:prop><a:resourcetype><a:collection/></a:resourcetype></a
:prop></a:propstat></a:response></a:multistatus>
0


Hope that may be of use.

-----Original Message-----
From: Stuart Rossiter [mailto:[EMAIL PROTECTED] 
Sent: 21 December 2005 15:09
To: [email protected]
Subject: Problems with <davput> Ant task

Hi.

 

  I'm using the Slide 2.1 Ant tasks with Ant 1.6.5, talking to IIS V6 on
Windows Server 2003. I can get a <davget> working fine, but any <davput>
returns a "PROPFFIND [sic!] does not return RESOURCETYPE" error.

 

From the code, this occurs when it can't find a resourcetype entry in
the HTTP multistatus response. I used DAV Explorer and this property
shows as having no value on all the items on the server (though there is
an isCollection property with value 1 in the right cases). I haven't
been able to trap the HTTP response to confirm what was actually sent
back but can anyone shed any light?? This seems something pretty
fundamental.....

 

In fact, any advise on trapping the HTTP would be welcome as well. I
tried using MS Fiddler and the Ant <setproxy> command but guess doesn't
work because no proxy has been defined to the httpclient instance used
(??).

 

Cheers,

Stuart


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. http://www.messagelabs.com
________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to