Linuxhippy wrote:
I would like to send pre-written XML to my WebDav server, since slide is too complex for me.
I already tried to upload it with HttpURLConnection or Jakarta's HttpClient but both only seem to support Http-Methods like Get, Post...


Is it possible to use slide to transfer the pre-written webdav-xml, like the XMLHTTP-Class allows to:
Set xmlReq = CreateObject("Microsoft.XMLHTTP")
xmlReq.open("PROPPATCH", strApptURL, False, strUserName, strPassWord);
xmlReq.setRequestHeader("Content-Type", "text/xml");
xmlReq.send(strApptRequest); //Send the xml

You can use the Slide WebDAV client library for this.

Typically, it will look like a bit like the Microsoft COM-object
with the "strApptURL", "strUserName" and "strPassWord-paramaters
bunched together and set on an instance of:
 org.apache.util.HttpURL

The "xmlReq.send" will be replaced by opening a connection to
the WebDAV server through a WebdavResource constructor.

ONJava has a pretty good article with some introductory information:
 http://www.onjava.com/pub/a/onjava/2003/12/23/slide.html

Regards,
 Martin

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



Reply via email to