
11th October 2011, 13:25
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
mail_domain_get_by_domain doesn't get the email.
Hi guys,
we are connect our software with ISPConfig but we get some difficulties in order to get the list of the email addess set in the ISPConfig by SOAP.
After the soap connection we call this method:
$mails = $client->mail_domain_get_by_domain ( $this->getSession (), "ourdomain.com" );
ourdomain.com is already set in the ISPConfig panel and work as well but the result of the call is empty. Why?!
thanks
|

11th October 2011, 13:29
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
Which ISPConfig version do you use for development? There was a bug in this function in the api in 3.0.3.3. which has been fixed in 3.0.4 beta.
|

11th October 2011, 13:38
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
The quotes have been added in you code. The result is the same. Does we have to connect to the mailserver?
We have the ispconfig 3 multiserver with the configuration
|

11th October 2011, 13:50
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
Connections are always done to the master server.
The changes were not about quotes, the changes were in the variable name. The function in 3.0.4 has been tested last week successfully. The function in 3.0.3.3 is broken.
|

11th October 2011, 13:53
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
Yes, i forgot to write in the last post that i have changed the domain var from domain_id to domain too.
Any idea?
|

11th October 2011, 13:56
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
You can debug the function by returning the sql query that is used to get the domain as soap error and then try this query in the ispconfig database of the master with phpmyadmin to see if it return the correct results.
|

11th October 2011, 14:28
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
this is the result in MySQL. The SOAP request is empty.
Code:
mysql> SELECT * FROM mail_domain WHERE domain = 'ourdomain.com';
+-----------+------------+-------------+---------------+----------------+----------------+-----------+-------------------+--------+
| domain_id | sys_userid | sys_groupid | sys_perm_user | sys_perm_group | sys_perm_other | server_id | domain | active |
+-----------+------------+-------------+---------------+----------------+----------------+-----------+-------------------+--------+
| 3 | 1 | 4 | riud | ru | | 3 | ourdomain.com | y |
+-----------+------------+-------------+---------------+----------------+----------------+-----------+-------------------+--------+
Last edited by vaio1; 11th October 2011 at 14:34.
Reason: wrong reply
|

11th October 2011, 14:59
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
How did you check if its empty? The functions returns a two dimensional arry, not a one dimensional array. Please use the print_r() function to display the output that you received from the remote script.
|

11th October 2011, 15:34
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
I have printed the value using the print_r() function but the result is an bool(false)
Last edited by vaio1; 11th October 2011 at 15:47.
|

11th October 2011, 15:54
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
Then you might have to try to debug your code, you should also check if you enabled thsi function for the remote user that you use to conect to ispconfig. We had tested this function a few days ago here and it worked, so I'am sure that the code in 3.0.4 is ok.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 07:32.
|
|
Recent comments
1 day 5 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 14 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 21 hours ago
2 days 10 hours ago
2 days 12 hours ago