(1). I have the following code to get ior content from domino server through HTTP:< String IorCot=null;
IorCot=NotesFactory.getIOR(serverName,userName,pwd);
… >
It can work well without any exception.
(2). Then I want to get the ior content by HTTPS, I changed the code as below:
< String IorCot=null;
String arg =new String[1];
arg[0] = “-HTTPEnableSSLSecurity”;
IorCot=NotesFactory.getIOR(serverName, arg, userName, pwd);
… >
At this time, an exception occured: ‘NotesException: Could not get IOR from Domino Server: {0}’. I think the exception is normal and should be happened because I set the value of HTTP SSL port to ‘disabled’ in Notes Administrator.
(3). But I encountered some confusion when I unite the two segment code together as follow:
< String IorCot=null;
IorCot=NotesFactory.getIOR(serverName,userName,pwd);
String arg =new String[1];
arg[0] = “-HTTPEnableSSLSecurity”;
IorCot=NotesFactory.getIOR(serverName, arg, userName, pwd);
… >
In this way, it can run smoothly without the any exception again. I don’t unstand why? I thought it should has the same exception as (2) for the HTTP SSL port status is still ‘disabled’.
Any body can tell me why there’s no exception in (3)? What’s the difference between (2) and (3)?
Thanks very much!