APM: WebDAV PROPPATCH magic

Wayne Walker wwalker at broadq.com
Mon Aug 11 13:36:25 CDT 2003


Usually there's a developer mailing list for a module.  So you post your
reasoning for a patch, and the patch and see what happens. 

On Mon, Aug 11, 2003 at 01:43:47PM -0500, jeremy wrote:
> OK,  I've modified Patrick's DAV.pm and DAV::Resource.pm.
> The proppatch method can now take the parameter -local who's value MUST
> be a well formatted xml body for a PROPPATCH request.
> 
> This modification allows you to submit any number of property/values and
> namespace/nsabbr tags as you want.  I just tested it by adding a contact
> to a test Exhcange 2000 server and it worked beautifully.
> 
> Can anyone tell me the appropriate channels for getting this reviewed by
> cpan folks?
> 
> 
> -Jeremy
> 
> On Mon, 2003-08-11 at 12:13, jeremy wrote:
> > oops,   ...I meant Resource.pm  not Response.pm.
> > 
> >  
> > 
> > 
> > On Mon, 2003-08-11 at 10:40, jeremy wrote:
> > > I think I figured it out.
> > >  It may be a matter of getting deeper into HTTP::DAV::Response
> > > 
> > >  input is still very much welcome.
> > > 
> > > 
> > > -J
> > > 
> > > 
> > > On Mon, 2003-08-11 at 10:24, jeremy wrote:
> > > > fellow Perlites,
> > > > 
> > > >  I'm working with HTTP:DAV (P.Collins) to update and add contacts to MS
> > > > Exchange 2000.  I had the xml body for the PROPPATCH request ready to go
> > > > in the script,  but when I went to write the 'proppatch' request it was
> > > > appearent that only one property could be set at a time.  Atleast that's
> > > > what was documented.  The syntax is like this:
> > > > 
> > > > $davObject->proppatch( -url=>"$myurl", -propname=>"$property",
> > > > -propvalue=>"$propval" [-action=>"set"]|"remove" )
> > > > 
> > > > 
> > > > Q1.
> > > > Can any of you folks think of a way to send an xml
> > > > file as the body in place of explicit calls to -propname and -propvalue?
> > > > 
> > > > I would really rather not iterate over a single property PROPPATCH
> > > > request in order to get all my properties updated.
> > > > 
> > > > thanks for you time,
> > > > 
> > > >     Jeremy Brooks
> > > > 
> > > > 
> > > > _______________________________________________
> > > > Austin mailing list
> > > > Austin at mail.pm.org
> > > > http://mail.pm.org/mailman/listinfo/austin
> > > 
> > > _______________________________________________
> > > Austin mailing list
> > > Austin at mail.pm.org
> > > http://mail.pm.org/mailman/listinfo/austin
> > 
> > _______________________________________________
> > Austin mailing list
> > Austin at mail.pm.org
> > http://mail.pm.org/mailman/listinfo/austin
> 
> _______________________________________________
> Austin mailing list
> Austin at mail.pm.org
> http://mail.pm.org/mailman/listinfo/austin

-- 

Wayne Walker

www.broadq.com :)  Bringing digital video and audio to the living room



More information about the Austin mailing list