You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by "Pan, Jiantao" <ji...@labbook.com> on 2001/04/20 22:09:32 UTC

namespace support on the client code

Hi, 
I got the slide 1.0.9 and tested the namespace support, it seems doesn't
work. The following is the testing code
It does insert a row into Property table, however the namespace value is
still "DAV:". 
I noticed that the older version the client library works and correctly set
the namespace to "DC:".

 

    public static void main(String args[]) {
        WebdavClient client = new WebdavClient();
        client.setDebug(100);
        Credentials credentials = new Credentials("root","root");
        client.setCredentials(credentials);
        try{
          client.startSession("localhost", 8080);
          PropPatchMethod propMethod = new
PropPatchMethod("/slide/files/test/abstract.html");
          propMethod.addPropertyToSet("test", "new Value","DC", "DC");
          client.executeMethod(propMethod);
          int status = propMethod.getStatusCode();
          System.out.println("Status"+ status);
        }
        catch(Exception ex){
          ex.printStackTrace();
        }

    }