SOAP API on IspConfig 3.0.3.1?

Discussion in 'Developers' Forum' started by AceLine, Dec 11, 2012.

  1. AceLine

    AceLine New Member

    Hi Till,
    Hi Falco,

    I have one - for me - very important question:

    I have installed ISPC 3.0.3.1 on my server. Now I had a look at the api examples in the tar.gz-folder of ISPC 3.0.4.6...

    Can I use this SOAP-Examples 1:1 on the 3.0.3.1 version?


    If not: how to update to the 3.0.4.6 version with 100% prevention of loosing data...? (the server is on production state and no data should be lost)

    Or can I just copy the api folder contents to the 3.0.3.1 server version?


    Thnx. in advance for your information and...

    ...best regards!


    AceLine
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This is a very old version and you can not use the api of a newer version with that version of course. Just update your sytm to 3.0.4.6. Btw, if you want to keep your system secure and prevent data loss, then you should update regularily.

    Just follow the normal update procedure as described in the release note:

    http://www.howtoforge.com/forums/showthread.php?t=57659
     
  3. AceLine

    AceLine New Member

    hi Till,

    thnx. for your answer. I did the update now but I get a SOAP Error: Could not connect to host error. :confused:

    what could I check (port 8080, where to check if it is active, etc.) to get closer to the problem?

    Hope, you have any help for me...


    Best regards from Austria,

    AceLine

     
    Last edited: Dec 11, 2012
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ensure that you use the correct URL that matches your server hostname and http/https in these variables, you must be able to open the url in your web browser:

    $soap_location = 'http://localhost:8080/remote/index.php';
    $soap_uri = 'http://localhost:8080/remote/';
     
  5. AceLine

    AceLine New Member

    ok, I will change the URLs... but I can´t get connection through browser:

    Fehler: Verbindung fehlgeschlagen
    Firefox kann keine Verbindung zu dem Server unter ns3.artetplus.at:8080 aufbauen.

    Do you have any idea? The firewall is set to "TCP from any port to 8080 allow access".

    Thnx. in advance,

    AceLine

    PS: Changed the URLs but still no SOAP connection possible
     
    Last edited: Dec 11, 2012
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you tried https instaed of http?
     
  7. AceLine

    AceLine New Member

    yes I´ve tried it with https. also the same. firefox can not connect to server. is TCP ok in the firewall?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    The soap connection is the same then the one that you use to access the ispconfig interface in the browser. So if you are able to login to ispconfig at all, then you must be able to access the soap interface as well, soap is just a different subfolder ( /remote/ ) of the same base URL.
     
  9. AceLine

    AceLine New Member

    Ok... :eek:) That changes a lot... I do not use ISPC 3 on standard port... now it connects.

    Thanx. a lot!!!

    Best regards,

    Ingmar aka AceLine
     
  10. AceLine

    AceLine New Member

    Sorry, Till... I´ve got one more question to this:

    It allways shows me a SOAP-Error that the password is wrong. I used the admin username with its password (I very often login manualy) and I used the user that belongs to the mailboxes to add to.

    Can you give me one more time an idea?

    Thnx. in advance.

    Ingmar
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to use the username and password of a remote api user which you created in ispconfig under System > remote users.
     
  12. AceLine

    AceLine New Member

    1000-Thnx. Works now like a charm...

    Best Support ever!

    Cu. Ingmar
     

Share This Page