Please bear with me-newbie.

While there is a fragment of example that querying Bibliography database in
java in Develop Guide, I am failed to convert it into python. The example
uses a getRemoteServiceManager to create a RemoteServiceManager, but I do
not know which should be
corresponding in python-uno.

My script is:
import uno
local = uno.getComponentContext()
resolver =
local.ServiceManager.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver",
local)
context =
resolver.resolve("uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager")

It tells me that "com.sun.star.connection.NoConnectException: Connector :
couldn't connect to socket (Success)"

Any one can help me to correct the error or provider an example to access
bibliography database directly?

Reply via email to