หน้า 1 จากทั้งหมด 2

Q สอบถามลองเขียน php webservice ด้วย nuSoap แล้วขึ้น Error ครับ

โพสต์แล้ว: 05/10/2019 5:37 pm
โดย birdkritsna
พอดีผมลองใช้ code ตัวอย่าง nuSoap มารันดูแต่ขึ้นเออเร่อแบบนี้ เกิดจากอะไรครับผม
2019-10-05_17-31-08.jpg
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; nusoap_base has a deprecated constructor in D:\xampp\htdocs\joomla_testing\tools\tools_pdf_converter\nusoap\lib\nusoap.php on line 85

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; nusoap_fault has a deprecated constructor in D:\xampp\htdocs\joomla_testing\tools\tools_pdf_converter\nusoap\lib\nusoap.php on line 1007

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; nusoap_xmlschema has a deprecated constructor in D:\xampp\htdocs\joomla_testing\tools\tools_pdf_converter\nusoap\lib\nusoap.php on line 1095

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; soapval has a deprecated constructor in D:\xampp\htdocs\joomla_testing\tools\tools_pdf_converter\nusoap\lib\nusoap.php on line 2067

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; soap_transport_http has a deprecated constructor in D:\xampp\htdocs\joomla_testing\tools\tools_pdf_converter\nusoap\lib\nusoap.php on line 2169

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; nusoap_server has a deprecated constructor in D:\xampp\htdocs\joomla_testing\tools\tools_pdf_converter\nusoap\lib\nusoap.php on line 3474

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wsdl has a deprecated constructor in D:\xampp\htdocs\joomla_testing\tools\tools_pdf_converter\nusoap\lib\nusoap.php on line 4597

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; nusoap_parser has a deprecated constructor in D:\xampp\htdocs\joomla_testing\tools\tools_pdf_converter\nusoap\lib\nusoap.php on line 6532

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; nusoap_client has a deprecated constructor in D:\xampp\htdocs\joomla_testing\tools\tools_pdf_converter\nusoap\lib\nusoap.php on line 7183

Notice: Undefined variable: url_path in D:\xampp\htdocs\joomla_testing\tools\tools_pdf_converter\index4.php on line 4
่Code

โค้ด: เลือกทั้งหมด

<?php
require_once('nusoap/lib/nusoap.php');
$server = new soap_server;
$server->configureWSDL('doSetsimetingwsdl', $url_path);
$server->register("doSetsimeting", array(    'var' => 'xsd:string', ) );
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
$server->service($HTTP_RAW_POST_DATA);

function doSetsimeting($var)
{
  return 'mindphp.com-->' . $var;
}

?>

Re: Q สอบถามลองเขียน php webservice ด้วย nuSoap แล้วขึ้น Error ครับ

โพสต์แล้ว: 05/10/2019 5:40 pm
โดย thatsawan
ลองมาจากตัวอย่างไหน

Re: Q สอบถามลองเขียน php webservice ด้วย nuSoap แล้วขึ้น Error ครับ

โพสต์แล้ว: 05/10/2019 5:44 pm
โดย birdkritsna
thatsawan เขียน:ลองมาจากตัวอย่างไหน
อันนี้ครับ
https://www.mindphp.com/developer/26-เท ... lient.html

Re: Q สอบถามลองเขียน php webservice ด้วย nuSoap แล้วขึ้น Error ครับ

โพสต์แล้ว: 05/10/2019 5:45 pm
โดย mindphp
ทำไม่ใช้ nusoap ?
เขียน webservice ทำอะไร ?

Re: Q สอบถามลองเขียน php webservice ด้วย nuSoap แล้วขึ้น Error ครับ

โพสต์แล้ว: 05/10/2019 5:49 pm
โดย birdkritsna
mindphp เขียน:ทำไม่ใช้ nusoap ?
เขียน webservice ทำอะไร ?
อ่อผมนึกว่า เป็นการประยุกต์ไปใช้กับแปลงไฟล์ได้ เลยลองนำมาใช้ดูอะครับ
ก็คือผมอยากส่งไฟล์ html ไปยัง web service แบบไหนหรือตัวไหนได้บ้างครับผม

Re: Q สอบถามลองเขียน php webservice ด้วย nuSoap แล้วขึ้น Error ครับ

โพสต์แล้ว: 05/10/2019 6:00 pm
โดย mindphp
php curl

Re: Q สอบถามลองเขียน php webservice ด้วย nuSoap แล้วขึ้น Error ครับ

โพสต์แล้ว: 05/10/2019 6:05 pm
โดย mindphp
กระทู้นี้ เห็นมีคน เข้ามาช่วย แต่คำแนะนำของเขาค้างอยู่เป็นคำตอบสุดท้าย
viewtopic.php?p=166351#p166351

Re: Q สอบถามลองเขียน php webservice ด้วย nuSoap แล้วขึ้น Error ครับ

โพสต์แล้ว: 05/10/2019 6:06 pm
โดย birdkritsna
mindphp เขียน:php curl
ขอบคุณครับผม

Re: Q สอบถามลองเขียน php webservice ด้วย nuSoap แล้วขึ้น Error ครับ

โพสต์แล้ว: 05/10/2019 6:10 pm
โดย mindphp
mindphp เขียน:กระทู้นี้ เห็นมีคน เข้ามาช่วย แต่คำแนะนำของเขาค้างอยู่เป็นคำตอบสุดท้าย
viewtopic.php?p=166351#p166351
cURL คืออะไร
viewtopic.php?f=29&t=58032#p156193

Re: Q สอบถามลองเขียน php webservice ด้วย nuSoap แล้วขึ้น Error ครับ

โพสต์แล้ว: 10/10/2019 6:05 am
โดย mindphp
ได้ศึกษา ตามนี้ หรือยังครับ