• Post Reply Bookmark Topic Watch Topic
  • New Topic

WebDAV proppatchMethod()

 
Madi Meka
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all... I am a newbie to WebDAV. I want to know how to set properties to a resource file using proppatchMethod() and how to retrieve them using propfindMethod(). I am not knowing how to give the parameters. I went through the WebDAV API but I ma confused with how to give the parameters. eg:


this returns me true. But wwhen i try to retrieve the properties this way...
I am not able to print the enumeration.



Please help....
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Which API is this that you're using?
 
Madi Meka
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..

I am using jakarta slide API.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you're talking about this class.

This: "wdr.propfindMethod(wdr+filename)" looks very suspicious to me. Are you sure that the argument has the correct value?
 
Madi Meka
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the argument has to be the filename rite??it is the url+filename. Please advise if i am wrong.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"wdr" is a WebdavResource object, correct? Are you certain that it returns the URL when used as part of a string concatenation? What I'm getting at is, have you printed out the value you're passing to propfindMethod, and verified that it is correct?
 
Madi Meka
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there...

I think i found my mistake... i had to pass path and an int value of DepthSupport as paramenters for propfindMethod. Now i am getting an xml of properties printed as enumeration...

As i am new to WebDAV, I think i will be asking you more number of doubts... Please help... Thanks....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!