میخوام یه همچین چیزی رو پیاده سازی کنم :
<?php
include 'nusoap_client.php';
function login($sername='sername',$password='password')
{
// My Login Code
}
function expireDate($sername='sername',$password='password' )
{
// Check Expire Date
}
$namespace = 'http://test.com';
$server = new nusoap_server();
$server->soap_defencoding = 'UTF-8';
$server->configureWSDL('My Web Service');
$server->wsdl->schemaTargetNamespace = $namespace;
$server->register('login',
array('username' => 'xsd:string', 'password' => 'xsd:string'),
array('return' => 'xsd:string'),'http://soapinterop.org');
$server->register('expireDate',
array('username' => 'xsd:string', 'password' => 'xsd:string'),
array('return' => 'xsd:string'),'http://soapinterop.org');
$POST_DATA = isset($GLOBALS['HTTP_RAW_POST_DATA'])
? $GLOBALS['HTTP_RAW_POST_DATA'] : '';
$server->service($POST_DATA);
exit();
?>
متاسفانه نمیدونم چطور باید همین رو درون کنترلرم پیاده سازی کنم !