[Vtigercrm-developers] SOAP
Lee Valentine
lee.valentine at saucesoft.com
Wed Jun 21 18:03:16 PDT 2006
There is actually a function for passing a username and password to the
server for basic authentication. The code below will do what you need.
$client = new
soapclient('https://www.yourserverhere.com/path/to/soap/vtiger_invoices.php',
false);
$client->setCredentials('user', 'password');
Lee Valentine
Sauce Software
Damien Bezborodow wrote:
> Awesome, man! I'll give it a test this afternoon.
>
> For the htaccess authentication, I'll restrict it to a certain host and
> require a login so that $soap_path equals something like
> 'https://user:password@www.yourserverhere.com/path/to/soap/vtiger_invoices.php'.
>
> I guess a better way would be to create a soap specific user/host table
> in the database and require an authentication via soap. It wouldn't hurt
> to keep htaccess rules over it too.
>
> Thanks,
>
> Damo
>
> Andrew Patterson wrote:
>
>> We’ve already written a fairly full featured SOAP interface for vTiger.
>> Part of it includes functions for creating and editing invoices. The
>> only thing you need to be careful of is the fact that a SOAP service
>> publishes a set of public functions available for anyone to use. At the
>> moment, we are using htaccess to restrict access to the service, but if
>> anyone has a more robust method of authentication, I’d love to hear it.
>>
>>
>>
>> See attachment for SOAP server and examples for using it.
>>
>>
>>
>> Andrew Patterson
>>
>> Sauce Software
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Free web-based spreadsheet application from Zoho. Create and share spreadsheets online using Zoho Sheet - http://zohosheet.com?vt
>>
> _______________________________________________
> Free web-based spreadsheet application from Zoho. Create and share spreadsheets online using Zoho Sheet - http://zohosheet.com?vt
>
More information about the vtigercrm-developers
mailing list