Hello,
I have a problem with opening database from web service that its placed on another server (but in one domain). I log into the server that has webservice using cookie that I obtained earlier through http logging. Now I run through ksoap one of methods. And now this method opens database.
If the database is on the same server everything works fine, but when it tries to access database that is on different server open function doesn’t work.
Does anyone know where should I look for cause of this problem ? I can only assume that it is somehow connected to not being logged one on to the other server, but I thought that I will be logged automatically with id that comes from first server (the one with web service).
Any help with this problem will be appreciated.
Subject: Open database on another server
SOAP connection uses HTTP port 80 (or HTTPS port 443).To open a database on a different Domino server the port 1352 should be open there.
This is valid only if there is a firewall coming in between.
Are these two Domino servers replicating? If so then connection between them is fine.
Regards
Litty Joseph
Subject: RE: Open database on another server
There is no firewall between unfortunately and replication works fine between those two servers.
Subject: RE: Open database on another server
Could you please post the code which tries to open the database?Does that code run within an agent?
Does the signer of that agent has enough access on second Domino server?
Subject: RE: Open database on another server
I have tried
dim db as NotesDatabase(“”,“”)
sb.Open(“server”, “base”, false)
and
dim db as NotesDatabase
set db = session.GetDatabase(“server”, “base”, false)
Both returns nothing.
As I said this is used in web service on first server (and web service is a kind of agent I suppose).
Im not sure what kind of privilages you have on your mind.
Cause I set the standard one (person that tries to access base on another server through this web service has rights to read this database).
Subject: RE: Open database on another server
Looks like an issue while trying to open a heavy/busy database.Try openWithFailOver instead of ‘open’.
Regards
Litty Joseph
Subject: RE: Open database on another server
Ok I think I found the problem. The server from which I run the web service on needs to be set as trusted server on the second one where the database I want to gain access to resides. This setting can be found on server configuration panel in security tab (at the end of page)
Subject: RE: Open database on another server
Now another problem :(. I need to run agent on the second server (the one that I am accessing through web service). I can obtain NotesAgent object from remote base. But when I call Run nothing happens (also no errors are reported). Both servers are 7.02 version.