Announcement

Collapse
No announcement yet.

How connect soap service with Delphi?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Last edited by Carsten Hoeger; 11-12-2008, 03:54 PM.

    Comment


    • #3
      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, 03:57 PM.

      Comment


      • #4
        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

        Comment


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

          Check



          [...]
          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.
          [...]

          Comment


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

            Comment


            • #7
              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.

              Comment


              • #8
                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)

                Comment


                • #9
                  That are only warnings, which can be ignored.
                  At least as long as the listcontext command line tool works.

                  Comment


                  • #10
                    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, 10:26 AM.

                    Comment


                    • #11
                      Hi
                      I reading soap xml all other but not find any answer
                      i think problem is delphi xml reader or wrong class defination.
                      Last one is my request and response is it true

                      Thanks alot
                      Attached Files

                      Comment

                      Working...
                      X