Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd September 2011, 14:18
kassyo kassyo is offline
Junior Member
 
Join Date: Oct 2010
Posts: 19
Thanks: 6
Thanked 2 Times in 2 Posts
Default ISPConfig 3 Remote api - SOAP error

Hello everyone,

Im actually doing a script for migrating massive mailboxes from another mail server but when i execute the script appears the following:

PHP Code:
Logged into remote server sucessfullyThe SessionID is 7730995c3dccf15af9ff59596332ed6cSOAP ErrorSOAP-ERROREncodingCannot find encoding 
The script is the following:

PHP Code:
<?php
$username 
'xxxx';
$password 'xxxx';
/*
$soap_location = 'http://localhost:8080/ispconfig3/interface/web/remote/index.php';
$soap_uri = 'http://localhost:8080/ispconfig3/interface/web/remote/';
*/
$soap_location 'http://correo.pruebas.com:8080/remote/index.php';
$soap_uri 'http://correo.pruebas.com:8080/remote/';

$client = new SoapClient(null, array('location' => $soap_location
                                     
'uri'      => $soap_uri));
try {
    
//* Login to the remote server
    
if($session_id $client->login($username,$password)) 
        echo 
'Logged into remote server sucessfully. The SessionID is '.$session_id.'';
    

//$domain_id = $client->mail_user_add($session_id, $client, $params);

$params = array( 'server_id' => '1',
                 
'email' => /*$email*/'pruebas@pruebas.com',/*Direccion completa*/
                 
'password' => /*$password*/'pruebas',
                 
'name' => /*$nombre*/'pruebecitas',
                 
'quota' => '0',
                 
'cc' => '',
                 
'maildir' => '/var/vmail/pruebas.com/'.'pruebas'/*$username*/,
                 
'homedir' => '/var/vmail',
                 
'uid' => '5000',
                 
'gid' => '5000',
                 
'postfix' => 'y',
                 
/*
                 'access' => array (
                    'datatype'    => 'VARCHAR',
                    'formtype'    => 'CHECKBOX',
                    'default'    => 'y',
                    'value'        => array(1 => 'y',0 => 'n')
                 ),
                 */
                 
'disableimap' => 'n',
                 
'disablepop3' => 'n',);
    
$domain_id $client->mail_user_add($session_id$client$params);

//* Logout
    
if($client->logout($session_id)) {
        echo 
"Usuario de correo dado de alta correctamente";
    }
    
} catch (
SoapFault $e) {
    die(
'SOAP Error: '.$e->getMessage());
    echo 
"Please contact the server administator";
}

?>
I think its a php-soap issue but not sure Googled a lot and didnt find anything.

The server config is taken from "The Perfect Server - OpenSUSE 11.4 x86_64 [ISPConfig 3]".

Any thoughts anyone?
Reply With Quote
Sponsored Links
  #2  
Old 2nd September 2011, 19:31
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,060
Thanks: 826
Thanked 5,395 Times in 4,239 Posts
Default

Haventt seen that errir yet. But it seems to be a problem with php soap to convert the type of the array.

Please clena your $params array and remove the comments and also there should not be a , after disablepop3.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following 2 Users Say Thank You to till For This Useful Post:
kassyo (5th September 2011), XRumerTest (5th September 2011)
  #3  
Old 5th September 2011, 13:12
kassyo kassyo is offline
Junior Member
 
Join Date: Oct 2010
Posts: 19
Thanks: 6
Thanked 2 Times in 2 Posts
Default

Thank you for the fast response, i cleaned the script as you explained but this didnt fixed anything.

"php -v" returns the following:

PHP Code:
PHP Warning:  PHP StartupUnable to load dynamic library '/usr/lib64/php5/extensions/intl.so' - /usr/lib64/php5/extensions/intl.soundefined symbolgrapheme_extract_count_iter in Unknown on line 0 
I dont know if its linked to my SOAP error i described first, but i promise i built a server with the howto ""The Perfect Server - OpenSUSE 11.3 x86_64 [ISPConfig 3]" and the same script worked fine (new server have openSUSE 11.4).
Reply With Quote
  #4  
Old 6th September 2011, 10:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

If you don't need the php5-intl module, you can either disable or uninstall it, or you try this link: https://bugzilla.novell.com/show_bug.cgi?id=665287#c2
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 13th September 2011, 11:14
kassyo kassyo is offline
Junior Member
 
Join Date: Oct 2010
Posts: 19
Thanks: 6
Thanked 2 Times in 2 Posts
Default

Thank you, just tried unistalling the php-intl module but the error remains.

Still searching for a solution but thanks for the help.
Reply With Quote
  #6  
Old 14th September 2011, 10:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I guess you have an intl.ini file somewhere that contains
Code:
extension = intl.so
Find that file...
Code:
updatedb
locate intl.ini
and comment out that line, then restart Apache.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 27th November 2013, 13:05
frankbootmaker frankbootmaker is offline
Junior Member
 
Join Date: Jan 2009
Posts: 16
Thanks: 3
Thanked 2 Times in 2 Posts
Default Mod_Evasive impacts SOAP / Roundcube

Hi,

I would like to share my experience with you.
Installed Roundcube as per suggested way but got always the SOAP Error: Access Forbidden error.

It turned out that the mod-evasive apache module caused the problem.
The solution was to insert in /etc/apache2/apache2.conf the

DOSWhitelist 127.0.0.1
DOSWhitelist 127.0.0.*

for whitelisting. Of course if you have an external server (in multi-server setup) add that here as well.

This fixed the SOAP issue!

Cheers,
Feri
Reply With Quote
The Following User Says Thank You to frankbootmaker For This Useful Post:
till (27th November 2013)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPCONFIG 3 Email Content Filter jariasca Installation/Configuration 11 2nd August 2012 12:27
Bind9 Error Messages (and a problem with A records...) erosbk Server Operation 0 23rd May 2011 07:18
ISPConfig 3: Monitor Module & Logfiles - All setup correctly? Master One Installation/Configuration 2 10th July 2009 18:51
How to install OpenOficeOrg 3.0.0 in Ubuntu 8.04 ernesthagger HOWTO-Related Questions 43 23rd December 2008 14:42
Could not make OpenSSL yontengyatso Installation/Configuration 3 3rd November 2005 10:50


All times are GMT +2. The time now is 14:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.