Hello, I have installed ISPconfig 2.2.13 on a Debian etch server with php4 (also php4-curl) and mysql5. I have followed the instructions of installing Remoting Framework: http://www.howtoforge.com/forums/showthread.php?t=11873 after the installation i have added a remote user and donloaded and configured the test script. Unfortunately there is some problem: the output of the test script in the browser is: Code: Error: Server: httpd log: Code: xx.xx.xx.xx - - [07/Jun/2007:17:16:19 +0200] "POST /remote/index.php HTTP/1.0" 500 1107 As you can see the http server of the ispconfig admin part returns: 500 Internal Server Error I have tried to reinstall ISPconfig - but the result is the same Any suggestions? Thanks!
Yes, at least i think so... i have edited compile_aps/compile and i have changed the PHP configure statement to: Code: ./configure --with-apxs=${INSTALL_ROOT}/httpd/bin/apxs --enable-track-vars --enable-sockets --enable-mbstring=all --with-config-file-path=${INSTALL_ROOT}/php --enable-ftp --prefix=${INSTALL_ROOT}/php ${WITH_OPENSSL} ${WITH_MYSQL} --without-pear
http://www.howtoforge.com/forums/showthread.php?t=12887&highlight=remoting try the simple hello world script note $err = $soapclient->getError(); if ($err) { echo '<h2>Error</h2><pre>' . $err . '</pre>'; echo '<h2>Request</h2><pre>' . htmlspecialchars($soapclient->request, ENT_QUOTES) . '</pre>'; echo '<h2>Response</h2><pre>' . htmlspecialchars($soapclient->response, ENT_QUOTES) . '</pre>'; echo '<h2>Debug</h2><pre>' . htmlspecialchars($soapclient->debug_str, ENT_QUOTES) . '</pre>'; }
This is probably a bug... Please help ASAP Has anybody managed to get Remote Framework work with 2.2.13?! I have tried 3 times to install it from scratch and every time followed the instructions carefuly... but nothing happens - only 500 Internal Server Error!!! There should be a problem with this version...
Please have a look at the error log of the ISPConfig webserver in /root/ispconfig/http/.... and in the error log of the webserver or website where you run the remoting client part.
ISPconfig log: Code: xx.xx.xx.xx - - [07/Jun/2007:17:16:19 +0200] "POST /remote/index.php HTTP/1.0" 500 1107 Client's apache log: Code: [Thu Jun 07 17:16:19 2007] [error] an unknown filter was not added: PHP btw. client and server run on the same machine, i do not know if that can cause some problems, but i have also tested from another place - the result was the same and my access.log is FULL of these: Code: ::1 - - [11/Jun/2007:11:48:06 +0200] "GET / HTTP/1.0" 302 422 "-" "Apache/2.2.3 (Debian) PHP/4.4.4-8+etch3 mod_ssl/2.2.3 OpenSSL/0.9.8c (internal dum my connection)"
My URL contains a simple string loopback example Server.php and Client.php, what I suggested is to create the files and place the codes in the 2 files and test the soap server connection. So you can get more info on the error. If the error is like "Service " not found then my experience with this error was to upgrade PHP as the php upgrade address an issue with SOAP
Server: Code: − <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> − <SOAP-ENV:Body> − <SOAP-ENV:Fault> <faultcode xsi:type="xsd:string">Client</faultcode> <faultactor xsi:type="xsd:string"/> <faultstring xsi:type="xsd:string">method '' not defined in service</faultstring> <detail xsi:type="xsd:string"/> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Client: Code: Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /var/www/web1/web/nusoap.php on line 2161 Array Error Server: Request POST /remote/index.php HTTP/1.0 Host: server.domain:81 User-Agent: NuSOAP/0.7.2 (1.94) Content-Type: text/xml; charset=ISO-8859-1 SOAPAction: "" Content-Length: 533 <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1116:hello xmlns:ns1116="http://tempuri.org"><name xsi:type="xsd:string">The SOAP server has reponsed correctly</name></ns1116:hello></SOAP-ENV:Body></SOAP-ENV:Envelope> Response HTTP/1.1 500 Internal Server Error Date: Mon, 11 Jun 2007 13:27:04 GMT Server: Apache/1.3.37 (Unix) PHP/5.2.2 mod_ssl/2.8.28 OpenSSL/0.9.8e X-Powered-By: PHP/5.2.2 Set-Cookie: PHPSESSID=adf7e826cac6f24ef1e6797152901cda; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Status: 500 Internal Server Error Connection: Close Content-Length: 1139 Content-Type: text/xml; charset=UTF-8 <?xml version="1.0"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd"> <SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>Server</faultcode><faultactor>method '' not defined in service ''</faultactor><faultstring></faultstring><detail><soapVal xsi:type="xsd:string"></soapVal></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope><!-- soap_server: entering parseRequest() on 15:27 2007-06-11 soap_server: Accept: */* soap_server: Content-Length: 533 soap_server: Content-Type: text/xml; charset=ISO-8859-1 soap_server: Host: server.domain:81 soap_server: SOAPAction: "" soap_server: User-Agent: NuSOAP/0.7.2 (1.94) soap_server: got encoding: UTF-8 soap_server: method name: soap_server: method '' not found! soap_server: parser debug: soap_parser: xml was empty, didn't parse! soap_server: server sending... --> Debug 2007-06-11 15:27:04.781087 soap_client: instantiate SOAP with endpoint at https://server.domain:81/remote/index.php 2007-06-11 15:27:04.781238 soap_client: call: operation=hello, namespace=http://tempuri.org, soapAction=, rpcParams=, style=rpc, use=encoded, endpointType=soap params=array(1) { ["name"]=> string(38) "The SOAP server has reponsed correctly" } headers=bool(false) 2007-06-11 15:27:04.781354 soap_client: serializing param array for operation hello 2007-06-11 15:27:04.781437 soap_client: in serialize_val: name=name, type=, name_ns=, type_ns=, use=encoded value=string(38) "The SOAP server has reponsed correctly" attributes=bool(false) 2007-06-11 15:27:04.781563 soap_client: wrapping RPC request with encoded method element 2007-06-11 15:27:04.781647 soap_client: In serializeEnvelope length=136 body (max 1000 characters)=<ns1116:hello xmlns:ns1116="http://tempuri.org"><name xsi:type="xsd:string">The SOAP server has reponsed correctly</name></ns1116:hello> style=rpc use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ 2007-06-11 15:27:04.781717 soap_client: headers: bool(false) 2007-06-11 15:27:04.781792 soap_client: namespaces: array(0) { } 2007-06-11 15:27:04.781894 soap_client: endpoint=https://server.domain:81/remote/index.php, soapAction=, namespace=http://tempuri.org, style=rpc, use=encoded, encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ 2007-06-11 15:27:04.781970 soap_client: SOAP message length=533 contents (max 1000 bytes)=<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1116:hello xmlns:ns1116="http://tempuri.org"><name xsi:type="xsd:string">The SOAP server has reponsed correctly</name></ns1116:hello></SOAP-ENV:Body></SOAP-ENV:Envelope> 2007-06-11 15:27:04.782059 soap_client: transporting via HTTP 2007-06-11 15:27:04.782803 soap_client: sending message, length=533 2007-06-11 15:27:04.782181 soap_transport_http: scheme = https 2007-06-11 15:27:04.782261 soap_transport_http: host = server.domain 2007-06-11 15:27:04.782332 soap_transport_http: port = 81 2007-06-11 15:27:04.782401 soap_transport_http: path = /remote/index.php 2007-06-11 15:27:04.782480 soap_transport_http: set Host: server.domain:81 2007-06-11 15:27:04.782572 soap_transport_http: set User-Agent: NuSOAP/0.7.2 (1.94) 2007-06-11 15:27:04.782650 soap_transport_http: set Content-Type: text/xml; charset=ISO-8859-1 2007-06-11 15:27:04.782723 soap_transport_http: set SOAPAction: "" 2007-06-11 15:27:04.782885 soap_transport_http: entered send() with data of length: 533 2007-06-11 15:27:04.782964 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme https, host server.domain, port 81 2007-06-11 15:27:04.783039 soap_transport_http: connect using https 2007-06-11 15:27:04.783187 soap_transport_http: cURL connection set up 2007-06-11 15:27:04.783274 soap_transport_http: set Content-Length: 533 2007-06-11 15:27:04.783347 soap_transport_http: HTTP request: POST /remote/index.php HTTP/1.0 2007-06-11 15:27:04.783420 soap_transport_http: HTTP header: Host: server.domain:81 2007-06-11 15:27:04.783492 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.7.2 (1.94) 2007-06-11 15:27:04.783563 soap_transport_http: HTTP header: Content-Type: text/xml; charset=ISO-8859-1 2007-06-11 15:27:04.783634 soap_transport_http: HTTP header: SOAPAction: "" 2007-06-11 15:27:04.783706 soap_transport_http: HTTP header: Content-Length: 533 2007-06-11 15:27:04.783801 soap_transport_http: set cURL payload 2007-06-11 15:27:04.783885 soap_transport_http: send and receive with cURL 2007-06-11 15:27:04.845843 soap_transport_http: No cURL error, closing cURL 2007-06-11 15:27:04.846654 soap_transport_http: found proper separation of headers and document 2007-06-11 15:27:04.846741 soap_transport_http: cleaned data, stringlen: 1139 2007-06-11 15:27:04.846889 soap_transport_http: found cookie: PHPSESSID = adf7e826cac6f24ef1e6797152901cda 2007-06-11 15:27:04.847015 soap_transport_http: No Content-Encoding header 2007-06-11 15:27:04.847090 soap_transport_http: end of send() 2007-06-11 15:27:04.847188 soap_client: Setting new cookie(s) 2007-06-11 15:27:04.847269 soap_client: got response, length=1139 type=text/xml; charset=UTF-8 2007-06-11 15:27:04.847342 soap_client: Entering parseResponse() for data of length 1139 and type text/xml; charset=UTF-8 2007-06-11 15:27:04.847419 soap_client: Got response encoding: UTF-8 2007-06-11 15:27:04.847501 soap_client: Use encoding: UTF-8 when creating soap_parser 2007-06-11 15:27:04.847637 soap_parser: No encoding specified in XML declaration 2007-06-11 15:27:04.847712 soap_parser: Entering soap_parser(), length=1139, encoding=UTF-8 2007-06-11 15:27:04.848073 soap_parser: found root struct Fault, pos 2 2007-06-11 15:27:04.848426 soap_parser: in buildVal() for detail(pos 6) of type 2007-06-11 15:27:04.848508 soap_parser: in buildVal, there are children 2007-06-11 15:27:04.848937 soap_parser: in buildVal, adding Java Vector detail 2007-06-11 15:27:04.849046 soap_parser: in buildVal() for Fault(pos 2) of type struct 2007-06-11 15:27:04.849118 soap_parser: in buildVal, there are children 2007-06-11 15:27:04.849196 soap_parser: in buildVal, adding Java Vector Fault 2007-06-11 15:27:04.849328 soap_parser: parsed successfully, found root struct: 2 of name Fault 2007-06-11 15:27:04.849458 soap_client: sent message successfully and got a(n) array return=array(4) { ["faultcode"]=> string(6) "Server" ["faultactor"]=> string(35) "method '' not defined in service ''" ["faultstring"]=> string(0) "" ["detail"]=> array(1) { ["soapVal"]=> string(0) "" } } 2007-06-11 15:27:04.849574 soap_client: got fault 2007-06-11 15:27:04.849653 soap_client: faultcode = Server<br> 2007-06-11 15:27:04.849724 soap_client: faultactor = method '' not defined in service ''<br> 2007-06-11 15:27:04.849795 soap_client: faultstring = <br> 2007-06-11 15:27:04.849865 soap_client: detail = Array<br> That is what i get... when testing with these scripts
I have updated ISPconfig php version to 5.2.3 and tried client.php from a server without safe mode. The result is: Code: Array Error Server: Request POST /remote/index.php HTTP/1.0 Host: server.domain:81 User-Agent: NuSOAP/0.7.2 (1.94) Content-Type: text/xml; charset=ISO-8859-1 SOAPAction: "" Content-Length: 533 <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns4075:hello xmlns:ns4075="http://tempuri.org"><name xsi:type="xsd:string">The SOAP server has reponsed correctly</name></ns4075:hello></SOAP-ENV:Body></SOAP-ENV:Envelope> Response HTTP/1.1 500 Internal Server Error Date: Mon, 11 Jun 2007 13:56:34 GMT Server: Apache/1.3.37 (Unix) PHP/5.2.3 mod_ssl/2.8.28 OpenSSL/0.9.8e X-Powered-By: PHP/5.2.3 Set-Cookie: PHPSESSID=5beabab4364805f24cd2ba1851401f37; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Status: 500 Internal Server Error Connection: Close Content-Length: 1419 Content-Type: text/xml; charset=UTF-8 <?xml version="1.0"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd"> <SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>Server</faultcode><faultactor>method 'hello' not defined in service ''</faultactor><faultstring></faultstring><detail><soapVal xsi:type="xsd:string"></soapVal></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope><!-- soap_server: entering parseRequest() on 15:56 2007-06-11 soap_server: Accept: */* soap_server: Content-Length: 533 soap_server: Content-Type: text/xml; charset=ISO-8859-1 soap_server: Host: server.domain:81 soap_server: SOAPAction: "" soap_server: User-Agent: NuSOAP/0.7.2 (1.94) soap_server: got encoding: UTF-8 soap_server: method name: hello soap_server: method 'hello' not found! soap_server: parser debug: soap_parser: Entering soap_parser() soap_parser: found root struct hello, pos 2 soap_parser: adding data for scalar value name of value The SOAP server has reponsed correctly soap_parser: inside buildVal() for hello(pos 2) of type struct soap_parser: parsed successfully, found root struct: 2 of name hello soap_server: server sending... --> Debug 2007-06-11 15:56:34.786912 soap_client: instantiate SOAP with endpoint at https://server.domain:81/remote/index.php 2007-06-11 15:56:34.787470 soap_client: call: operation=hello, namespace=http://tempuri.org, soapAction=, rpcParams=, style=rpc, use=encoded, endpointType=soap params=array(1) { ["name"]=> string(38) "The SOAP server has reponsed correctly" } headers=bool(false) 2007-06-11 15:56:34.807471 soap_client: serializing param array for operation hello 2007-06-11 15:56:34.807926 soap_client: in serialize_val: name=name, type=, name_ns=, type_ns=, use=encoded value=string(38) "The SOAP server has reponsed correctly" attributes=bool(false) 2007-06-11 15:56:34.808688 soap_client: wrapping RPC request with encoded method element 2007-06-11 15:56:34.809083 soap_client: In serializeEnvelope length=136 body (max 1000 characters)=<ns4075:hello xmlns:ns4075="http://tempuri.org"><name xsi:type="xsd:string">The SOAP server has reponsed correctly</name></ns4075:hello> style=rpc use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ 2007-06-11 15:56:34.809387 soap_client: headers: bool(false) 2007-06-11 15:56:34.809785 soap_client: namespaces: array(0) { } 2007-06-11 15:56:34.810318 soap_client: endpoint=https://server.domain:81/remote/index.php, soapAction=, namespace=http://tempuri.org, style=rpc, use=encoded, encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ 2007-06-11 15:56:34.810709 soap_client: SOAP message length=533 contents (max 1000 bytes)=<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns4075:hello xmlns:ns4075="http://tempuri.org"><name xsi:type="xsd:string">The SOAP server has reponsed correctly</name></ns4075:hello></SOAP-ENV:Body></SOAP-ENV:Envelope> 2007-06-11 15:56:34.811216 soap_client: transporting via HTTP 2007-06-11 15:56:34.814993 soap_client: sending message, length=533 2007-06-11 15:56:34.811835 soap_transport_http: scheme = https 2007-06-11 15:56:34.812208 soap_transport_http: host = server.domain 2007-06-11 15:56:34.812559 soap_transport_http: port = 81 2007-06-11 15:56:34.812894 soap_transport_http: path = /remote/index.php 2007-06-11 15:56:34.813319 soap_transport_http: set Host: server.domain:81 2007-06-11 15:56:34.813838 soap_transport_http: set User-Agent: NuSOAP/0.7.2 (1.94) 2007-06-11 15:56:34.814249 soap_transport_http: set Content-Type: text/xml; charset=ISO-8859-1 2007-06-11 15:56:34.814613 soap_transport_http: set SOAPAction: "" 2007-06-11 15:56:34.815442 soap_transport_http: entered send() with data of length: 533 2007-06-11 15:56:34.815866 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme https, host server.domain, port 81 2007-06-11 15:56:34.816238 soap_transport_http: connect using https 2007-06-11 15:56:34.817528 soap_transport_http: cURL connection set up 2007-06-11 15:56:34.817995 soap_transport_http: set Content-Length: 533 2007-06-11 15:56:34.818362 soap_transport_http: HTTP request: POST /remote/index.php HTTP/1.0 2007-06-11 15:56:34.818721 soap_transport_http: HTTP header: Host: server.domain:81 2007-06-11 15:56:34.819061 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.7.2 (1.94) 2007-06-11 15:56:34.819400 soap_transport_http: HTTP header: Content-Type: text/xml; charset=ISO-8859-1 2007-06-11 15:56:34.819807 soap_transport_http: HTTP header: SOAPAction: "" 2007-06-11 15:56:34.820172 soap_transport_http: HTTP header: Content-Length: 533 2007-06-11 15:56:34.820943 soap_transport_http: set cURL payload 2007-06-11 15:56:34.821370 soap_transport_http: send and receive with cURL 2007-06-11 15:56:34.919456 soap_transport_http: No cURL error, closing cURL 2007-06-11 15:56:34.923506 soap_transport_http: found proper separation of headers and document 2007-06-11 15:56:34.923926 soap_transport_http: cleaned data, stringlen: 1419 2007-06-11 15:56:34.924581 soap_transport_http: found cookie: PHPSESSID = 5beabab4364805f24cd2ba1851401f37 2007-06-11 15:56:34.925178 soap_transport_http: No Content-Encoding header 2007-06-11 15:56:34.925599 soap_transport_http: end of send() 2007-06-11 15:56:34.926045 soap_client: Setting new cookie(s) 2007-06-11 15:56:34.926463 soap_client: got response, length=1419 type=text/xml; charset=UTF-8 2007-06-11 15:56:34.926837 soap_client: Entering parseResponse() for data of length 1419 and type text/xml; charset=UTF-8 2007-06-11 15:56:34.927210 soap_client: Got response encoding: UTF-8 2007-06-11 15:56:34.927696 soap_client: Use encoding: UTF-8 when creating soap_parser 2007-06-11 15:56:34.928401 soap_parser: No encoding specified in XML declaration 2007-06-11 15:56:34.928784 soap_parser: Entering soap_parser(), length=1419, encoding=UTF-8 2007-06-11 15:56:34.930642 soap_parser: found root struct Fault, pos 2 2007-06-11 15:56:34.932878 soap_parser: in buildVal() for detail(pos 6) of type 2007-06-11 15:56:34.933294 soap_parser: in buildVal, there are children 2007-06-11 15:56:34.933711 soap_parser: in buildVal, adding Java Vector detail 2007-06-11 15:56:34.934356 soap_parser: in buildVal() for Fault(pos 2) of type struct 2007-06-11 15:56:34.934738 soap_parser: in buildVal, there are children 2007-06-11 15:56:34.935154 soap_parser: in buildVal, adding Java Vector Fault 2007-06-11 15:56:34.935959 soap_parser: parsed successfully, found root struct: 2 of name Fault 2007-06-11 15:56:34.936632 soap_client: sent message successfully and got a(n) array return=array(4) { ["faultcode"]=> string(6) "Server" ["faultactor"]=> string(40) "method 'hello' not defined in service ''" ["faultstring"]=> string(0) "" ["detail"]=> array(1) { ["soapVal"]=> string(0) "" } } 2007-06-11 15:56:34.937085 soap_client: got fault 2007-06-11 15:56:34.937437 soap_client: faultcode = Server<br> 2007-06-11 15:56:34.937745 soap_client: faultactor = method 'hello' not defined in service ''<br> 2007-06-11 15:56:34.938049 soap_client: faultstring = <br> 2007-06-11 15:56:34.938370 soap_client: detail = Array<br> in ISPconfig log: Code: xx.xx.xx.xx - - [11/Jun/2007:16:00:52 +0200] "POST /remote/index.php HTTP/1.1" 500 1419 but when i try from the same place with the sample tets.php in the browser i get: Code: Script end ... ...and in the ISPconfig log: Code: xx.xx.xx.xx - - [11/Jun/2007:16:01:02 +0200] "POST /remote/index.php HTTP/1.0" 200 198
Quoting http://www.php.net PHP 5.2.3 Released [31-May-2007] The PHP development team would like to announce the immediate availability of PHP 5.2.3. This release continues to improve the security and the stability of the 5.X branch as well as addressing two regressions introduced by the previous 5.2 releases. These regressions relate to the timeout handling over non-blocking SSL connections and the lack of HTTP_RAW_POST_DATA in certain conditions. All users are encouraged to upgrade to this release. I received the same error upgrading PHP in ISPConfig fixed the issue for me. I am pretty much burning the whole haystack the find the needle but there was little support available for the remoting issues. How to upgrade: upack ISPConfig, download and unpack PHP 5.2.3, rename the downloaded php folder to the version in ispconfig then overwrite it then install ISPConfig. My compile file on line 129 looks like this ./configure --with-apxs=${INSTALL_ROOT}/httpd/bin/apxs --enable-track-vars --enable-sockets --enable-mbstring=all --with-config-file-path=${INSTALL_ROOT}/php --with-curl --with-dom --enable-ftp --prefix=${INSTALL_ROOT}/php ${WITH_OPENSSL} ${WITH_MYSQL} --enable-dom ${WITH_ZLIB_DIR} --without-pear || error "Could not configure PHP" Hopefully someone can come up with something better, than the procedure I outline
Unfortunately changing the php version does not do the job for me after i changed the version it looks better but still doesnt work as expected when i call Code: <?php require_once('nusoap.php'); $soap_client = new soap_client('https://server8324612146.internet-server.dk:81/remote/index.php'); echo $soap_client->call('hello',array('name'=>'The SOAP server has reponsed correctly')); $err = $soap_client->getError(); if ($err) { echo '<h2>Error</h2><pre>' . $err . '</pre>'; echo '<h2>Request</h2><pre>' . htmlspecialchars($soap_client->request, ENT_QUOTES) . '</pre>'; echo '<h2>Response</h2><pre>' . htmlspecialchars($soap_client->response, ENT_QUOTES) . '</pre>'; echo '<h2>Debug</h2><pre>' . htmlspecialchars($soap_client->debug_str, ENT_QUOTES) . '</pre>'; } ?> i get in the server ISPconfig log Code: XX.XX.XX.XX - - [11/Jun/2007:22:53:04 +0200] "POST /remote/index.php HTTP/1.1" 500 1419 and in the browser the output is: Code: ]Array Error Server: Request POST /remote/index.php HTTP/1.0 Host: server.domain:81 User-Agent: NuSOAP/0.7.2 (1.94) Content-Type: text/xml; charset=ISO-8859-1 SOAPAction: "" Content-Length: 533 <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1530:hello xmlns:ns1530="http://tempuri.org"><name xsi:type="xsd:string">The SOAP server has reponsed correctly</name></ns1530:hello></SOAP-ENV:Body></SOAP-ENV:Envelope> Response HTTP/1.1 500 Internal Server Error Date: Mon, 11 Jun 2007 21:06:15 GMT Server: Apache/1.3.37 (Unix) PHP/5.2.3 mod_ssl/2.8.28 OpenSSL/0.9.8e X-Powered-By: PHP/5.2.3 Set-Cookie: PHPSESSID=294a3966ef38e7be15a4eae8f1d1ac06; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Status: 500 Internal Server Error Connection: Close Content-Length: 1419 Content-Type: text/xml; charset=UTF-8 <?xml version="1.0"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd"> <SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>Server</faultcode><faultactor>method 'hello' not defined in service ''</faultactor><faultstring></faultstring><detail><soapVal xsi:type="xsd:string"></soapVal></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope><!-- soap_server: entering parseRequest() on 23:06 2007-06-11 soap_server: Accept: */* soap_server: Content-Length: 533 soap_server: Content-Type: text/xml; charset=ISO-8859-1 soap_server: Host: server.domain:81 soap_server: SOAPAction: "" soap_server: User-Agent: NuSOAP/0.7.2 (1.94) soap_server: got encoding: UTF-8 soap_server: method name: hello soap_server: method 'hello' not found! soap_server: parser debug: soap_parser: Entering soap_parser() soap_parser: found root struct hello, pos 2 soap_parser: adding data for scalar value name of value The SOAP server has reponsed correctly soap_parser: inside buildVal() for hello(pos 2) of type struct soap_parser: parsed successfully, found root struct: 2 of name hello soap_server: server sending... --> Debug 2007-06-11 23:06:15.576367 soap_client: instantiate SOAP with endpoint at https://server.domain:81/remote/index.php 2007-06-11 23:06:15.576870 soap_client: call: operation=hello, namespace=http://tempuri.org, soapAction=, rpcParams=, style=rpc, use=encoded, endpointType=soap params=array(1) { ["name"]=> string(38) "The SOAP server has reponsed correctly" } headers=bool(false) 2007-06-11 23:06:15.577630 soap_client: serializing param array for operation hello 2007-06-11 23:06:15.578038 soap_client: in serialize_val: name=name, type=, name_ns=, type_ns=, use=encoded value=string(38) "The SOAP server has reponsed correctly" attributes=bool(false) 2007-06-11 23:06:15.578785 soap_client: wrapping RPC request with encoded method element 2007-06-11 23:06:15.579270 soap_client: In serializeEnvelope length=136 body (max 1000 characters)=<ns1530:hello xmlns:ns1530="http://tempuri.org"><name xsi:type="xsd:string">The SOAP server has reponsed correctly</name></ns1530:hello> style=rpc use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ 2007-06-11 23:06:15.579618 soap_client: headers: bool(false) 2007-06-11 23:06:15.580100 soap_client: namespaces: array(0) { } 2007-06-11 23:06:15.580691 soap_client: endpoint=https://server.domain:81/remote/index.php, soapAction=, namespace=http://tempuri.org, style=rpc, use=encoded, encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ 2007-06-11 23:06:15.581084 soap_client: SOAP message length=533 contents (max 1000 bytes)=<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1530:hello xmlns:ns1530="http://tempuri.org"><name xsi:type="xsd:string">The SOAP server has reponsed correctly</name></ns1530:hello></SOAP-ENV:Body></SOAP-ENV:Envelope> 2007-06-11 23:06:15.581488 soap_client: transporting via HTTP 2007-06-11 23:06:15.584956 soap_client: sending message, length=533 2007-06-11 23:06:15.581970 soap_transport_http: scheme = https 2007-06-11 23:06:15.582281 soap_transport_http: host = server.domain 2007-06-11 23:06:15.582580 soap_transport_http: port = 81 2007-06-11 23:06:15.582896 soap_transport_http: path = /remote/index.php 2007-06-11 23:06:15.583317 soap_transport_http: set Host: server.domain:81 2007-06-11 23:06:15.583811 soap_transport_http: set User-Agent: NuSOAP/0.7.2 (1.94) 2007-06-11 23:06:15.584210 soap_transport_http: set Content-Type: text/xml; charset=ISO-8859-1 2007-06-11 23:06:15.584575 soap_transport_http: set SOAPAction: "" 2007-06-11 23:06:15.585395 soap_transport_http: entered send() with data of length: 533 2007-06-11 23:06:15.585797 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme https, host server.domain, port 81 2007-06-11 23:06:15.586172 soap_transport_http: connect using https 2007-06-11 23:06:15.586715 soap_transport_http: cURL connection set up 2007-06-11 23:06:15.587194 soap_transport_http: set Content-Length: 533 2007-06-11 23:06:15.587572 soap_transport_http: HTTP request: POST /remote/index.php HTTP/1.0 2007-06-11 23:06:15.587941 soap_transport_http: HTTP header: Host: server.domain:81 2007-06-11 23:06:15.588290 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.7.2 (1.94) 2007-06-11 23:06:15.588678 soap_transport_http: HTTP header: Content-Type: text/xml; charset=ISO-8859-1 2007-06-11 23:06:15.589033 soap_transport_http: HTTP header: SOAPAction: "" 2007-06-11 23:06:15.589429 soap_transport_http: HTTP header: Content-Length: 533 2007-06-11 23:06:15.590171 soap_transport_http: set cURL payload 2007-06-11 23:06:15.590580 soap_transport_http: send and receive with cURL 2007-06-11 23:06:15.732409 soap_transport_http: No cURL error, closing cURL 2007-06-11 23:06:15.736162 soap_transport_http: found proper separation of headers and document 2007-06-11 23:06:15.736625 soap_transport_http: cleaned data, stringlen: 1419 2007-06-11 23:06:15.737313 soap_transport_http: found cookie: PHPSESSID = 294a3966ef38e7be15a4eae8f1d1ac06 2007-06-11 23:06:15.737923 soap_transport_http: No Content-Encoding header 2007-06-11 23:06:15.738272 soap_transport_http: end of send() 2007-06-11 23:06:15.738663 soap_client: Setting new cookie(s) 2007-06-11 23:06:15.739025 soap_client: got response, length=1419 type=text/xml; charset=UTF-8 2007-06-11 23:06:15.739379 soap_client: Entering parseResponse() for data of length 1419 and type text/xml; charset=UTF-8 2007-06-11 23:06:15.739728 soap_client: Got response encoding: UTF-8 2007-06-11 23:06:15.740202 soap_client: Use encoding: UTF-8 when creating soap_parser 2007-06-11 23:06:15.740845 soap_parser: No encoding specified in XML declaration 2007-06-11 23:06:15.741223 soap_parser: Entering soap_parser(), length=1419, encoding=UTF-8 2007-06-11 23:06:15.742978 soap_parser: found root struct Fault, pos 2 2007-06-11 23:06:15.745211 soap_parser: in buildVal() for detail(pos 6) of type 2007-06-11 23:06:15.745628 soap_parser: in buildVal, there are children 2007-06-11 23:06:15.746030 soap_parser: in buildVal, adding Java Vector detail 2007-06-11 23:06:15.746642 soap_parser: in buildVal() for Fault(pos 2) of type struct 2007-06-11 23:06:15.747019 soap_parser: in buildVal, there are children 2007-06-11 23:06:15.747453 soap_parser: in buildVal, adding Java Vector Fault 2007-06-11 23:06:15.748180 soap_parser: parsed successfully, found root struct: 2 of name Fault 2007-06-11 23:06:15.748873 soap_client: sent message successfully and got a(n) array return=array(4) { ["faultcode"]=> string(6) "Server" ["faultactor"]=> string(40) "method 'hello' not defined in service ''" ["faultstring"]=> string(0) "" ["detail"]=> array(1) { ["soapVal"]=> string(0) "" } } 2007-06-11 23:06:15.749403 soap_client: got fault 2007-06-11 23:06:15.749802 soap_client: faultcode = Server<br> 2007-06-11 23:06:15.750155 soap_client: faultactor = method 'hello' not defined in service ''<br> 2007-06-11 23:06:15.750511 soap_client: faultstring = <br> 2007-06-11 23:06:15.750868 soap_client: detail = Array<br>
and in the client's apache log: Code: XX.XX.XX.XX - - [11/Jun/2007:22:53:04 +0200] "GET /remoting_example/test_soap.php HTTP/1.1" 200 9911 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.4) Gecko/20070508 Iceweasel/2.0.0.4 (Debian-2.0.0.4-1)" When i call the test script that is is shiped with the Remoting Tool i get following in the server's ISPconfig log: Code: XX.XX.XX.XX - - [11/Jun/2007:22:51:59 +0200] "POST /remote/index.php HTTP/1.0" 200 1865 and the output in the browser is: Code: Script end ... btw.on debian sarge ispconfig 2.2.11 + remoting tool works perfect for me... I will continue to struggle with this problem... any help is highly appreciated! Thanks
As i posted before, in isp config 2.2.13 version release thread,for me framework not working too. On version 2.2.12 works fine.
You are using remoting for the hello world test scripts of course hello service is not defined, the scripts contain 2 files cleint.php and server.php hello is defined in the server.php not with ISPConfig remoting remoting/index.php. the client.php and server.php have nothing to do with ISPConfig. I placed them there as a most basic SOAP test. 2007-06-11 23:06:15.750155 soap_client: faultactor = method 'hello' not defined in service ''<br> why? $soap_client = new soap_client('https://server8324612146.internet-server.dk:81/remote/index.php'); //n.b server.php which I posted is not index.php found with ISPConfig and service hello is not defined with ISPConfig remoting/index.php.
Sorry my fault! I have now placed server.php on the server running ISPconfig and client.php on the remote client. After executing client.php i get the following as output in the browser: Code: Hello The SOAP server has reponsed correctly. ...which is very very very good news!!! The test script is also working fine!!! Thanks for your help guys!!!