Forums / Developer / ezSOAPClient request/response / Comment49488
Maxime Thomas
Friday 09 May 2008 2:00:13 am
Hi,
I already done this on a old version of ez 3.6.x.
You have to :- declare the SOAP server in the soap.ini file :
[GeneralSettings] EnableSOAP=true [ExtensionSettings] # Extensions for SOAP functions. # SOAP functions must be registered under soap/initialize.php SOAPExtensions[]=your extension
- then create a file extension/<your extension>/soap/initialize.php- You have to declare all of your functions :
function myfunction( $param1, $param2) { ... return $result; }
- Just after each function, you must register it in eZ :
$server->registerFunction( "myfunction", array("param1" => "string", "param2" => "array") );
And that's all.The URL of the SOAP service is www.yoursite.com/soap.php
It may change for version 4.0.
Maxime Thomas maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou Company Blog : http://www.wascou.org/eng/Company/Blog Technical Blog : http://share.ez.no/blogs/maxime-thomas