Big Brother, I asked a question, I am debugging a good local PHP access WebService interface has been successful, and can pass the relevant parameters, but I put the program on the server side after the appearance of
Site cannot display this page
HTTP 500 Internal Service error
The most likely causes are:
? The site is undergoing maintenance.
? The site has a program error.
Here are some things you can try:
Retype the address.
Returns to the previous page.
More information
Do you know what the problem is?? Read and Write permissions???
Reply to discussion (solution)
Have you ever met this situation???
PHP Access WEBSERVICE requires the use of a SOAP extension or unsorp.php class library
PHP Access WEBSERVICE requires the use of a SOAP extension or unsorp.php class library
I made a require_once ("lib/nusoap.php") at the beginning;
The Lib folder is also placed in the same directory where the files are running.
nusoap.php is using Fsockopen connection webservice, check to see if the function is disabled.
nusoap.php is using Fsockopen connection webservice, check if the function is disabled ... How to modify it?
nusoap.php is using Fsockopen connection WebService, please check if the function is disabled is php.ini inside the allow_url_fopen?? This is on.
If it is disabled, contact the administrator to see if it can be lifted.
Of course you also need to ensure that your program is in error_reporting (E_all); There is no error (warning) information in the case
If it is disabled, contact the administrator to see if it can be lifted.
Of course you also need to ensure that your program is in error_reporting (E_all); No error (warning) information is turned on. Or not ... Why not? Hey!
If it is disabled, contact the administrator to see if it can be lifted.
Of course you also need to ensure that your program is in error_reporting (E_all); In case there is no error (warning) information greatly. What else could be the problem?? I just tested it. Fsockopen is open.
HTTP 500 Internal Service error
In addition to the possibility that the SOAP extension is not open, it could be a syntax error in your program.
Error_reporting (E_all);
When turned on, see if there are any error prompts.
HTTP 500 Internal Service error
In addition to the possibility that the SOAP extension is not open, it could be a syntax error in your program.
Error_reporting (E_all);
When turned on, see if there are any error prompts.
No error prompts. The beginning also cited nusoap.php
HTTP 500 Internal Service error
In addition to the possibility that the SOAP extension is not open, it could be a syntax error in your program.
Error_reporting (E_all);
When turned on, see if there are any error prompts. I put IE inside Internet option inside-advanced-Display friendly HTPP error message tick to remove, just display my test with echo information, but the following content is still not executed!
There is an echo-out message stating that the page is free of grammatical errors.
What is not being executed below?
There is an echo-out message stating that the page is free of grammatical errors.
What is not being executed below? PHP transmits data through the WebService interface. The main thing is that the local run is fine. And I just checked the php.ini of the server, and there's nothing wrong with that. Dizzy.
1, did not see your code
2, you only say 500 wrong
What do you call a man to say?
1, did not see your code
2, you only say 500 wrong
What do you call a man to say? Sorry ... Full code
GetError (); $client->soap_defencoding = ' utf-8 '; $client->decode_utf8 = ture; $client->xml_encoding = ' utf-8 '; $client->soap_defencoding = ' utf-8 '; $client->decode_utf8 = false; $client->xml_encoding = ' Utf-8 ', if ($err) {echo 'Constructor Error
' . $err. '
';} Doc/lit parameters get wrapped//$param = Array (' cityname ' = ' Dalian ', ' countryname ' = ' China '); $json = ' {' Requ Est ": {" Header ": {" Ifcode ":" Interface id "," corpcode ":" Client Code "," Syscode ":" Kongrun_basiccode "," Account ":" username "," Pwd ":" Password ",}," Body ": {" Integral ":" 1 "," Mobi LePhone ":" Mobile Number "}}} '; $param = Array (' Json ' = = $json);//$param =json_decode ($json); $result = $client->call ( ' Memberaddintegral ', Array (' parameters ' = + $param), ', ', ', false, True, ' document ', ' encoded ');//Check for a faultif ($ Client->fault) {echo 'Fault
'; Print_r ($result); Echo '
';} else {//Check for errors $err = $client->geterror (); if ($err) {//Display the error echo 'Error
' . $err. '
'; } else {//Display the result echo 'Result
'; Print_r ($result); Echo '
'; }}echo 'Request
' . Htmlspecialchars ($client->request, ent_quotes). '
'; Echo 'Response
' . Htmlspecialchars ($client->response, ent_quotes). '
'; Echo 'Debug
' . Htmlspecialchars ($client->debug_str, ent_quotes). '
';? >
Obviously your PHP version is not the same, and the server is php5.3 or above
And nusoap.php is not able to adapt to the high version of PHP! No, I don't know yet. I only use SOAP extensions
Deprecated:assigning The return value of new by reference was Deprecated in nusoap.php on line 7381
Warning:creating default object from empty value in nusoap.php> on line >75
Obviously your PHP version is not the same, and the server is php5.3 or above
And nusoap.php is not able to adapt to the high version of PHP! No, I don't know yet. I only use SOAP extensions
Deprecated:assigning The return value of new by reference was Deprecated in nusoap.php on line 7381
Warning:creating default object from empty value in nusoap.php> to line >75 Thanks, the problem has been resolved, I speak the server of the php.ini soap to be banned after you can Take it!