Hi everybody,

I'm in trouble with WSO2 php. I create a simple client to use web services provided by my ERP (dolibarr). I want to create a new user, and i send some information (firstname, lastname, phone, mail, ...) to the server through his web services. When I get the response, I get the new user's id. But when I try to affect this value to a member of my class I get a segmentation fault !

This is the code of the function I use :

class User
{
    private $id;

    ...

    public function commitUser()
    {
            // create client in WSDL mode
            $client = new WSClient(array("wsdl"=>'user.wsdl'));
            $wsProxy = $client->getProxy();


            // ... Preparation of the parameters

$param = array("authentication" => $auth->toArray(), "ys_create_user" => $userParam);

            $retUser = $wsProxy->createYsUser($param);

            if($retUser['result']['result_code'] != 'OK')
            {
throw new BadReturnWebServiceException('createysuser_dolibarr', $retUser['result']['result_label']);
            }

            $this->id = $retUser['id'];
    }
}

I don't understand where the problem come from. Because the value is affected (I can print it !). But before the execution ending I get a segmentation fault (core dumped).

Thanks for your help !!!

Ps : scuse my english, but I'm french ...

--
Antoine Louiset                     Tél : +33 6 76 66 80 34
Responsable du projet Yousign       Mail : [email protected]


Attachment: smime.p7s
Description: Signature cryptographique S/MIME

_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to