[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Dolibarr-dev] Nusoap
From: |
Jean-François FERRY |
Subject: |
Re: [Dolibarr-dev] Nusoap |
Date: |
Sat, 17 Sep 2011 10:27:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 |
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
> <address@hidden> 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
>> address@hidden [2]
>> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev [3]
>>
>>
>>
>
> _______________________________________________
> Dolibarr-dev mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Dolibarr-dev] Nusoap,
Jean-François FERRY <=