View Single Post
  #15  
Old 4th September 2008, 20:24
gauthier gauthier is offline
Member
 
Join Date: Oct 2007
Posts: 58
Thanks: 5
Thanked 3 Times in 2 Posts
Default back with this...

Hi,

Thanks to grandpagenocide for his good work.

I use: debian 4, ispconfig2.2.25, Remote Framework beta 4.2

I made the change in /home/admispconfig/ispconfig/lib/classes/ispconfig_isp_domain.lib.php line 376:

Quote:
if(isset($go_api->groups)) {
$tmp_groups = $go_api->groups->myGroups();
if(!is_array($tmp_groups)) {
$sql = "UPDATE isp_nodes SET status = 1 WHERE doc_id = '$doc_id' AND doctype_id = '$doctype_id'";
$go_api->db->query($sql);
$go_api->errorMessage($go_api->lng("error_domain_delete_client").$go_api->lng("weiter_link"));
}
}
Remote framework can create and suspend web but not delete it (I used to delete web using remote framework on another server, so I know this is possible).

Now the error I have is :

$soapclient->getError():
Quote:
Client: Status field is not empty.
Debug:
Quote:
soap_client: call: login, Array, , , ,
soap_client: endpointType:
soap_client: in serialize_val: myremoteuser, user, , , , , encoded
soap_client: in serialize_val: passformyremoteuser, pass, , , , , encoded
soap_client: endpoint: https://xx.xx.xx.xx:81/remote/index.php, soapAction: , namespace: http://testuri.org
soap_client: sending msg (len: 587) w/ soapaction ''...
soap_client: transporting via HTTP
soap_client: sending message, length: 587
soap_client: transport debug data... soap_transport_http: scheme = https
soap_transport_http: host = xx.xx.xx.xx
soap_transport_http: port = 81
soap_transport_http: path = /remote/index.php
soap_transport_http: entered sendHTTPS() with data of length: 587
soap_transport_http: found proper separation of headers and document
soap_transport_http: cleaned data, stringlen: 2046

soap_client: got response: 6asdfasdfasdfasdfasdfasdfdb
soap_client: Entering parseResponse(), about to create soap_parser instance
soap_client: vanos a llamar a soap_parser con:6asdfadsfadfasdfadsfadsfasdfb
soap_client: soap_parser: Entering soap_parser()
soap_parser: llamamos a parser con: xml->parser=Resource id #50 y xml=6asdfasdfasdfasdfadfasdfb
soap_parser: found root struct loginResponse, pos 2
soap_parser: adding data for scalar value soapVal of value 6asdfasdfasdfadsfasdfb
soap_parser: inside buildVal() for loginResponse(pos 2) of type struct
soap_parser: parsed successfully, found root struct: 2 of name loginResponse

soap_client: sent message successfully and got a(n) array back
soap_client: call: service, Array, , , ,
soap_client: endpointType:
soap_client: in serialize_val: 6asdfasdfasdfasdfasdfasdfb, sid, , , , , encoded
soap_client: in serialize_val: web, module, , , , , encoded
soap_client: in serialize_val: web_suspend, function, , , , , encoded
soap_client: in serialize_val: Array, params, , , , , encoded
soap_client: in serialize_val: p50.myweb.com, web_title, , , , , encoded
soap_client: endpoint: https://xx.xx.xx.xx:81/remote/index.php, soapAction: , namespace: http://testuri.org
soap_client: sending msg (len: 736) w/ soapaction ''...
soap_client: transporting via HTTP
soap_client: sending message, length: 736
soap_client: transport debug data... soap_transport_http: scheme = https
soap_transport_http: host = xx.xx.xx.xx
soap_transport_http: port = 81
soap_transport_http: path = /remote/index.php
soap_transport_http: entered sendHTTPS() with data of length: 736
soap_transport_http: found proper separation of headers and document
soap_transport_http: cleaned data, stringlen: 2301

soap_client: got response: 1
soap_client: Entering parseResponse(), about to create soap_parser instance
soap_client: vanos a llamar a soap_parser con:1
soap_client: soap_parser: Entering soap_parser()
soap_parser: llamamos a parser con: xml->parser=Resource id #52 y xml=1
soap_parser: found root struct serviceResponse, pos 2
soap_parser: adding data for scalar value soapVal of value 1
soap_parser: inside buildVal() for serviceResponse(pos 2) of type struct
soap_parser: parsed successfully, found root struct: 2 of name serviceResponse

soap_client: sent message successfully and got a(n) array back
soap_client: call: service, Array, , , ,
soap_client: endpointType:
soap_client: in serialize_val: 6asdfasdfasdfasdfasdfasdfasdfb, sid, , , , , encoded
soap_client: in serialize_val: web, module, , , , , encoded
soap_client: in serialize_val: web_delete, function, , , , , encoded
soap_client: in serialize_val: Array, params, , , , , encoded
soap_client: in serialize_val: p50.myweb.com, web_title, , , , , encoded
soap_client: endpoint: https://xx.xx.xx.xx:81/remote/index.php, soapAction: , namespace: http://testuri.org
soap_client: sending msg (len: 735) w/ soapaction ''...
soap_client: transporting via HTTP
soap_client: sending message, length: 735
soap_client: transport debug data... soap_transport_http: scheme = https
soap_transport_http: host = xx.xx.xx.xx
soap_transport_http: port = 81
soap_transport_http: path = /remote/index.php
soap_transport_http: entered sendHTTPS() with data of length: 735
soap_transport_http: found proper separation of headers and document
soap_transport_http: cleaned data, stringlen: 6091

soap_client: got response: ClientStatus field is not empty.
soap_client: Entering parseResponse(), about to create soap_parser instance
soap_client: vanos a llamar a soap_parser con: ClientStatus field is not empty.
soap_client: soap_parser: Entering soap_parser()
soap_parser: llamamos a parser con: xml->parser=Resource id #54 y xml= ClientStatus field is not empty.
soap_parser: found root struct Fault, pos 2
soap_parser: adding data for scalar value faultcode of value Client
soap_parser: adding data for scalar value faultactor of value
soap_parser: adding data for scalar value faultstring of value Status field is not empty.
soap_parser: adding data for scalar value soapVal of value
soap_parser: inside buildVal() for detail(pos 6) of type
soap_parser: inside buildVal() for Fault(pos 2) of type struct
soap_parser: parsed successfully, found root struct: 2 of name Fault

soap_client: sent message successfully and got a(n) array back
soap_client: got fault
soap_client: faultcode = Client

soap_client: faultactor =

soap_client: faultstring = Status field is not empty.

soap_client: detail = Array
I have already checked the remote user has permision to delete websites and DNS.

I would be thankfull if someone can help me with this.

thanks.
Reply With Quote