Problem solved.

Before I did :

try {
   $soap = new nusoap_client($WS_DOL_URL);

   //login
   $session = $soap->login($conf->global->OVHSMS_NICK, 
$conf->global->OVHSMS_PASS,"fr", false);
    [...]
}

Now it's (v3.0) :

try {
   $soap = new nusoap_client($WS_DOL_URL,
           array(
               'login' => $login,
               'password' => $pass
        )
    );
    [...]
}

The login method is not necessary.



Le dim. 21 août 2011 03:00:50 CEST, JF FERRY a écrit :
>
>
> On Sun, 21 Aug 2011 02:31:34 +0200, Destailleur Laurent
> <[email protected]> wrote:
>> If question is to call dolibarr web services, answer is code for client
>> does not depend on server when using web service.
>
> No the webservice that I try to call is ovh soapi. I'm unable to connect
> width $soapclient->login("") 
>
> The error message :
> Error : SoapFault exception: [soap:310] Wrong user id or password: Can't
> Login in connect_ovh_test.php:18 Stack trace: #0 connect_ovh_test.php(18):
> SoapClient->__call('login', Array) #1 connect_ovh_test.php(18):
> SoapClient->login('XXXXX-OVH', 'XXXXX', 'fr', false) #2 {main}
>
> The code work on 3.0 :\
>
>
>>
>> So you should be able to call web service with a standard nusoap or any
>> other tool or language.
>>
>> But if you want to follow example of client provided into webservices
>> directory, then you must use the nusoap embedded with dolibarr as there
>> was some fix to be compatible with php5.
>>
>>  2011/8/21 JF FERRY 
>>  Hello,
>>
>>  Is there been any changes to the NuSoap library to use a webservice
>> with
>>  3.1?
>>
>>  _______________________________________________
>>  Dolibarr-dev mailing list
>>  [email protected] [2]
>>  https://lists.nongnu.org/mailman/listinfo/dolibarr-dev [3]
>>
>>
>>
>
> _______________________________________________
> Dolibarr-dev mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev



_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à