SOAP Web Service Server php Client Python part 1

preview_player
Показать описание
Create WebService with php And Consuming With Python

Link WAMP

Link Python

Link SOAPpy

-Next Install SOAPpy with pip or easy_install
pip : pip install soappy
easy_install : easy_install soappy
check Module SOAPpy with cli python Command

help('SOAPpy')

you must get this output :
------------------------------------------------------------------------------------
NAME
SOAPpy

FILE
c:\python27\lib\site-packages\soappy\__init__.py

PACKAGE CONTENTS ...
------------------------------------------------------------------------------------
Finally Try My Codes
------------------------------------------------------------------------------------
Server SOAP
------------------------------------------------------------------------------------
function add($a,$b){
return $a + $b;
}

$server = new SoapServer(null,$arg);
$server::addFunction('add');
$server::handle();
------------------------------------------------------------------------------------

Client SOAP
------------------------------------------------------------------------------------
$client = new SoapClient(null,$arg);
var_dump($client::add(88,885));
------------------------------------------------------------------------------------

Client Python
------------------------------------------------------------------------------------
from SOAPpy import SOAPProxy
------------------------------------------------------------------------------------
Рекомендации по теме