ezSOAPClient request/response

ezSOAPClient request/response

Wednesday 07 May 2008 5:36:44 am - 1 reply

Author Message

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

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.