Hi all, I need your help for solving this error, anyone have same problem with me? here for my problem, I got this error on Remote API when add new mailbox on ISPConfig Version: 3.3.0p3 from c# asp.net. I have success login using remote user and got session but got error: <soap-env:envelope xmlns:soap-env="://schemas.xmlsoap.org/soap/envelope/"> <soap-env:body> <soap-env:fault> <faultcode>data_processing_error</faultcode> <faultstring>email_error_isemail<br />login_error_regex<br />quota_error_value<br /> </faultstring> </soap-env:fault> </soap-env:body> </soap-env:envelope> Here for my code: public string MailUserAdd(string sessionId) { string soapEnvelope = @"<?xml version=""1.0"" encoding=""UTF-8""?> <soapenv:Envelope xmlns:soapenv=""://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsi=""w3.org/2001/XMLSchema-instance"" xmlns:xsd=""w3.org/2001/XMLSchema"" xmlns:urn=""urn:ISPConfig"" xmlns:soapenc=""://schemas.xmlsoap.org/soap/encoding/""> <soapenv:Body> <urn:mail_user_add soapenv:encodingStyle=""://schemas.xmlsoap.org/soap/encoding/""> <session_id xsi:type=""xsd:string"">"+sessionId+ @"</session_id> <client_id xsi:type=""xsd:int"">0</client_id> <params xsi:type=""soapenc:Array"" soapenc:arrayType=""xsd:anyType[1]""> <item xsi:type=""urn:mail_user"" xmlns:urn=""urn:ISPConfig""> <server_id xsi:type=""xsd:int"">1</server_id> <email xsi:type=""xsd:string"">[email protected]</email> <login xsi:type=""xsd:string"">[email protected]</login> <password xsi:type=""xsd:string"">TestPassword123!</password> <name xsi:type=""xsd:string""></name> <quota xsi:type=""xsd:int"">1024</quota> <homedir xsi:type=""xsd:string""></homedir> <maildir xsi:type=""xsd:string""></maildir> <uid xsi:type=""xsd:int"">5000</uid> <gid xsi:type=""xsd:int"">5000</gid> <active xsi:type=""xsd:string"">y</active> <disableimap xsi:type=""xsd:string"">n</disableimap> <disablepop3 xsi:type=""xsd:string"">n</disablepop3> <disabledeliver xsi:type=""xsd:string"">n</disabledeliver> </item> </params> </urn:mail_user_add> </soapenv:Body> </soapenv:Envelope>"; return SendSoapRequest(serverUrl, soapEnvelope); } i'm use serverUrl ://mail2.mydomain.dk:8080/remote/index.php private string SendSoapRequest(string url, string envelope) { var request = (HttpWebRequest)WebRequest.Create(url); request.Method = "POST"; request.ContentType = "text/xml; charset=utf-8"; using (var stream = new StreamWriter(request.GetRequestStream())) { stream.Write(envelope); } try { var response = request.GetResponse(); using (var reader = new StreamReader(response.GetResponseStream())) { return reader.ReadToEnd(); } } catch (WebException ex) { using (var reader = new StreamReader(ex.Response.GetResponseStream())) { string error = reader.ReadToEnd(); return "ERROR: " + error; // <-- shows ISPConfig SOAP fault } } } Hope you can help me, thank you
The error means you sent an invalid email address, an invalid login, and an invalid value for quota to ISPConfg. Either use a SOAP library when sending SOAP requests, or if you don't have one, use the REST AOI instead. Building soap requests as text strings does not make much sense.
Hi Till Brehm, I'm already use the REST API, but still got response: {"code":"remote_fault","message":"email_error_isemail login_error_regex quota_error_value","response":false} Here for the params: hope you can see that caused error, thank you