Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетил 17131 программист и 1834 робота. Сейчас ищут 1592 программиста ...

Auth_Container_SOAP

Вернуться к: Auth

Auth_Container_SOAP

Auth_Container_SOAP – Authenticate against a SOAP service

This container makes use of the PEAR SOAP client to provide authentication against a SOAP service.

The storage-specific argument for the Auth constructor() is an array of options.

Available Options
Option Data Type Default value Description
"endpoint" string The URI where the service is located.
"namespace" string The namespace of the web service.
"method" string The SOAP method you wish to call.
"encoding" string The content encoding that should be used (e.g. UTF-8).
"usernamefield" string The name of the field where the username is stored.
"passwordfield" string The name of the field where the password is stored.
"matchpasswords" boolean TRUE

If TRUE then the container will look for the password field in the returned result from the soap call and try to match that value with the one supplied from the end user.

If FALSE then it is assumed that the soap call will return an error if the user does not authenticate properly. If no error is returned than the user is assumed to valid and allowed to proceed.

"_features" array

A named array of extra parameters that are to be passed to the soap call in addition to the username and password fields. These are passed to the soap call as named parameters.

<?php
array(
  
'field1'  => 'value1',
  
'foo'     => 'bar',
);
?>



Вернуться к: Auth

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware