Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jun 2007
    Location
    Bursa,Turkey
    Posts
    49

    Lightbulb How connect soap service with Delphi?

    Hi
    I write a admin gui for windoz.never use soap before.trying connect ox soap service.I get wsdl file and import in delphi.need login connect code samples

    Thanks

  2. #2
    Carsten Hoeger is offline Open-Xchange Professional Services
    Join Date
    Mar 2007
    Posts
    703

    Default

    The SOAP API only exists for provisioning (managing users, groups, resources, creating contexts, etc).

    When you want to write an ui for the open-xchange groupware, you need to use the JSON or WebDAV API.

    http://www.open-xchange.com/en/oxpedia#Interfaces
    Last edited by Carsten Hoeger; 11-12-2008 at 03:54 PM.
    OXpedia.org - the answer to almost all questions.

  3. #3
    Join Date
    Jun 2007
    Location
    Bursa,Turkey
    Posts
    49

    Default

    hi Carsten
    I write for managing user and others....

    I write some test code.
    I get error:failed to reconnect to RMI port of admin daemon

    Any ideas
    platform delphi 2009 xp OX6.6


    procedure TForm1.Button1Click(Sender: TObject);
    var
    masterCreds :Credentials;
    lall:listAll;
    lallRes:listAllResponse;
    begin
    masterCreds :=Credentials.Create;
    masterCreds.login:='oxadminmaster';
    masterCreds.password:='verysecret';
    lall := listall.Create;
    lall.auth := masterCreds;
    lallRes :=(HTTPRIO1 as OXContextServicePortType).listAll(lall);---->error this line
    end;
    Last edited by dryphon; 11-12-2008 at 03:57 PM.

  4. #4
    Join Date
    Jun 2007
    Location
    Bursa,Turkey
    Posts
    49

    Default

    My log file

    Nov 12, 2008 4:32:25 PM com.openexchange.admin.soap.OXSOAPRMIMapper reconnect
    INFO: reconnecting to rmi://mysitename:1099/OXContext_V2
    Nov 12, 2008 4:32:25 PM com.openexchange.admin.soap.OXSOAPRMIMapper reconnect
    INFO: OXSOAPRMIMapper.reconnect: Connection problem
    Nov 12, 2008 4:32:25 PM com.openexchange.admin.soap.OXSOAPRMIMapper reconnect
    INFO: waiting 1 seconds and try again
    Nov 12, 2008 4:32:26 PM com.openexchange.admin.soap.OXSOAPRMIMapper reconnect
    INFO: OXSOAPRMIMapper.reconnect: Connection problem
    Nov 12, 2008 4:32:26 PM com.openexchange.admin.soap.OXSOAPRMIMapper reconnect
    INFO: waiting 1 seconds and try again
    Nov 12, 2008 4:32:27 PM org.apache.axis2.rpc.receivers.RPCMessageReceiver invokeBusinessLogic
    SEVERE: failed to reconnect to RMI port of admin daemon
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.axis2.rpc.receivers.RPCUtil.invokeServi ceClass(RPCUtil.java:194)
    at org.apache.axis2.rpc.receivers.RPCMessageReceiver. invokeBusinessLogic(RPCMessageReceiver.java:102)
    at org.apache.axis2.receivers.AbstractInOutMessageRec eiver.invokeBusinessLogic(AbstractInOutMessageRece iver.java:40)
    at org.apache.axis2.receivers.AbstractMessageReceiver .receive(AbstractMessageReceiver.java:100)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEng ine.java:176)
    at org.apache.axis2.transport.http.HTTPTransportUtils .processHTTPPostRequest(HTTPTransportUtils.java:27 5)
    at org.apache.axis2.transport.http.AxisServlet.doPost (AxisServlet.java:131)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:616)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:689)
    at com.openexchange.ajp13.AJPv13Request.response(AJPv 13Request.java:120)
    at com.openexchange.ajp13.AJPv13RequestHandler.create Response(AJPv13RequestHandler.java:466)
    at com.openexchange.ajp13.AJPv13Connection.createResp onse(AJPv13Connection.java:197)
    at com.openexchange.ajp13.AJPv13Listener.run(AJPv13Li stener.java:259)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.rmi.RemoteException: failed to reconnect to RMI port of admin daemon
    at com.openexchange.admin.soap.OXSOAPRMIMapper.reconn ect(OXSOAPRMIMapper.java:181)
    at com.openexchange.admin.soap.OXSOAPRMIMapper.reconn ect(OXSOAPRMIMapper.java:212)
    at com.openexchange.admin.soap.OXContext.listAll(OXCo ntext.java:458)
    ... 18 more
    Nov 12, 2008 4:32:27 PM org.apache.axis2.engine.AxisEngine receive
    SEVERE: failed to reconnect to RMI port of admin daemon
    org.apache.axis2.AxisFault: failed to reconnect to RMI port of admin daemon
    at org.apache.axis2.rpc.receivers.RPCMessageReceiver. invokeBusinessLogic(RPCMessageReceiver.java:158)
    at org.apache.axis2.receivers.AbstractInOutMessageRec eiver.invokeBusinessLogic(AbstractInOutMessageRece iver.java:40)
    at org.apache.axis2.receivers.AbstractMessageReceiver .receive(AbstractMessageReceiver.java:100)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEng ine.java:176)
    at org.apache.axis2.transport.http.HTTPTransportUtils .processHTTPPostRequest(HTTPTransportUtils.java:27 5)
    at org.apache.axis2.transport.http.AxisServlet.doPost (AxisServlet.java:131)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:616)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:689)
    at com.openexchange.ajp13.AJPv13Request.response(AJPv 13Request.java:120)
    at com.openexchange.ajp13.AJPv13RequestHandler.create Response(AJPv13RequestHandler.java:466)
    at com.openexchange.ajp13.AJPv13Connection.createResp onse(AJPv13Connection.java:197)
    at com.openexchange.ajp13.AJPv13Listener.run(AJPv13Li stener.java:259)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.axis2.rpc.receivers.RPCUtil.invokeServi ceClass(RPCUtil.java:194)
    at org.apache.axis2.rpc.receivers.RPCMessageReceiver. invokeBusinessLogic(RPCMessageReceiver.java:102)
    ... 12 more
    Caused by: java.rmi.RemoteException: failed to reconnect to RMI port of admin daemon
    at com.openexchange.admin.soap.OXSOAPRMIMapper.reconn ect(OXSOAPRMIMapper.java:181)
    at com.openexchange.admin.soap.OXSOAPRMIMapper.reconn ect(OXSOAPRMIMapper.java:212)
    at com.openexchange.admin.soap.OXContext.listAll(OXCo ntext.java:458)
    ... 18 more

  5. #5
    Carsten Hoeger is offline Open-Xchange Professional Services
    Join Date
    Mar 2007
    Posts
    703

    Default

    Code:
    failed to reconnect to RMI port of admin daemon
    That's quite likely the problem.

    Check

    http://software.open-xchange.com/OX6...dmin-SOAP.html

    [...]
    The default configuration of the Admin SOAP service expects the Admin Daemon to be accessible on localhost. To change this behaviour, the file /opt/open-xchange/etc/admindaemon/plugin/open-xchange-admin-soap.properties must changed accordingly. Just set RMI_HOSTNAME to something different.
    [...]
    OXpedia.org - the answer to almost all questions.

  6. #6
    Join Date
    Jun 2007
    Location
    Bursa,Turkey
    Posts
    49

    Default

    Hi
    my error message changed new:Element does not contain single text node
    When i finish code share all ox comunity.
    Thanks

  7. #7
    Carsten Hoeger is offline Open-Xchange Professional Services
    Join Date
    Mar 2007
    Posts
    703

    Default

    Sorry, I don't know, what the error message indicates (never programmed in Delphi).

    You might want to check /var/log/open-xchange/open-xchange.log.0 for any errors within SOAP calls.
    OXpedia.org - the answer to almost all questions.

  8. #8
    Join Date
    Jun 2007
    Location
    Bursa,Turkey
    Posts
    49

    Default

    Hi Carsten
    open-xchange.log.0 not have new message but
    open-xchange-admin.log.0 have new one

    Nov 13, 2008 2:56:19 PM com.openexchange.database.ConnectionPool$Connectio nLifecycle validate
    SEVERE: DBP-0013 Category=8 Message=1 statements aren't closed. exceptionID=897698825-32
    DBP-0013 Category=8 Message=1 statements aren't closed. exceptionID=897698825-32
    at com.openexchange.database.ConnectionPool$Connectio nLifecycle.validate(ConnectionPool.java:273)
    at com.openexchange.pooling.ReentrantLockPool.back(Re entrantLockPool.java:251)
    at com.openexchange.pooling.ReentrantLockPool.back(Re entrantLockPool.java:222)
    at com.openexchange.database.Database.back(Database.j ava:242)
    at com.openexchange.database.Database.back(Database.j ava:232)
    at com.openexchange.database.Database.back(Database.j ava:213)
    at com.openexchange.server.impl.DBPool.pushWrite(DBPo ol.java:97)
    at com.openexchange.admin.storage.sqlStorage.OXAdminP oolDBPool.pushConnectionForContext(OXAdminPoolDBPo ol.java:124)
    at com.openexchange.admin.tools.AdminCache.pushConnec tionForContext(AdminCache.java:334)
    at com.openexchange.admin.storage.mysqlStorage.OXCont extMySQLStorage.listContext(OXContextMySQLStorage. java:851)
    at com.openexchange.admin.rmi.impl.OXContext.list(OXC ontext.java:476)
    at com.openexchange.admin.rmi.impl.OXContext.listAll( OXContext.java:488)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:294)
    at sun.rmi.transport.Transport$1.run(Transport.java:1 53)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport. java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:466)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:707)
    at java.lang.Thread.run(Thread.java:595)
    Nov 13, 2008 2:56:19 PM com.openexchange.database.ConnectionPool$Connectio nLifecycle validate
    SEVERE: DBP-0013 Category=8 Message=1 statements aren't closed. exceptionID=897698825-33
    DBP-0013 Category=8 Message=1 statements aren't closed. exceptionID=897698825-33
    at com.openexchange.database.ConnectionPool$Connectio nLifecycle.validate(ConnectionPool.java:273)
    at com.openexchange.pooling.ReentrantLockPool.back(Re entrantLockPool.java:251)
    at com.openexchange.pooling.ReentrantLockPool.back(Re entrantLockPool.java:222)
    at com.openexchange.database.Database.back(Database.j ava:242)
    at com.openexchange.database.Database.back(Database.j ava:201)
    at com.openexchange.server.impl.DBPool.pushWrite(DBPo ol.java:92)
    at com.openexchange.admin.storage.sqlStorage.OXAdminP oolDBPool.pushConnectionForConfigDB(OXAdminPoolDBP ool.java:106)
    at com.openexchange.admin.tools.AdminCache.pushConnec tionForConfigDB(AdminCache.java:342)
    at com.openexchange.admin.storage.mysqlStorage.OXCont extMySQLStorage.listContext(OXContextMySQLStorage. java:874)
    at com.openexchange.admin.rmi.impl.OXContext.list(OXC ontext.java:476)
    at com.openexchange.admin.rmi.impl.OXContext.listAll( OXContext.java:488)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:294)
    at sun.rmi.transport.Transport$1.run(Transport.java:1 53)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport. java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:466)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:707)
    at java.lang.Thread.run(Thread.java:595)

  9. #9
    Carsten Hoeger is offline Open-Xchange Professional Services
    Join Date
    Mar 2007
    Posts
    703

    Default

    That are only warnings, which can be ignored.
    At least as long as the listcontext command line tool works.
    OXpedia.org - the answer to almost all questions.

  10. #10
    Join Date
    Jun 2007
    Location
    Bursa,Turkey
    Posts
    49

    Default

    yes its running
    [root@mail sbin]# ./listcontext -A oxadminmaster -P verysecret
    cid fid fname enabled qmax qused name lmappings
    1 3 1_ctx_store true 1024 5 1 defaultcontext
    [root@mail sbin]#

    ok thanks for answer
    Last edited by dryphon; 11-14-2008 at 10:26 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •