I did not receive the original e-mail, but anyway...

Have you tried to recompile your code against 2.0b1? I guess you have
not, else you would have noticed that the API has changed a bit.

Ingo

> Hi,
> 
> In 2003, we develop application use webdavlib in Slide 1.0.16 client to
> access Calendar of MS Exchange server 2000 SP2 by http protocol. It works
> ok.
> 
> Now we change to use HTTPS protocol but Slide 1.0.16 not support and can not
> login to Exchange through Https. So I change to use Slide 2.0 beta webdavlib
> client but have exception
> 
> org.apache.util.HttpsURL url = new
> org.apache.util.HttpsURL(protocol+"://"+host+":"+port);
>  url.setUserInfo(user,password);
> url.setPath(expath+"/"+user);
>  WebdavResource rc = new WebdavResource(url);
> String path = "/"+expath+"/"+(String)principal.get("user")+"/calendar/";
> SearchMethod src = new SearchMethod(path,
> Query.searchCalRequest(from,to,path));
>  rc.executeHttpRequestMethod(rc.retrieveSessionInstance(), src);
> Enumeration e = src.getResponses();
> 
> Here is exception:
> 
> [Fatal Error] :1:979: Element or attribute do not match QName production:
> QName:
> :=(NCName':')?NCName.
> java.lang.NullPointerException
>         at
> org.apache.webdav.lib.methods.XMLResponseMethodBase.initResponseHasht
> able(XMLResponseMethodBase.java:350)
>         at
> org.apache.webdav.lib.methods.XMLResponseMethodBase.getResponseHashta
> ble(XMLResponseMethodBase.java:336)
>         at
> org.apache.webdav.lib.methods.XMLResponseMethodBase.getResponses(XMLR
> esponseMethodBase.java:173)
> 
> What something wrong in our code? please help me. With them same code work
> ok with http protocol and Slide 1.0.16
> 
> I do more thing debug result as follow:
> 
> debug("rc.getStatusMessage() " +  rc.getStatusMessage());  -> OK 200
> debug("rc.getStatusCode() "+rc.getStatusCode());                ->200
> debug("src.getResponseBodyAsString()"+ src.getResponseBodyAsString()); ->
> null
> debug(new String(src.getResponseBody())); -> null
> debug(src.getResponseHeaders());  -> have data
> debug(src.getResponseBodyAsStream());   -> null
> debug(src.getResponseDocument());   -> null
> 
> 
> Thank,
> 
> Victor


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

Reply via email to