I'm trying to write an application using Flex/SOAP interfaces. And I need to determine some interchange classes which will be used during SOAP requests and responses.
E.g. I have SOAP method login() in my controller that accepts authinfo class instance representing user's authentication information.
Where should I store that class definition? Should it be some kind of model? Or maybe a component? What if I only need it to specify its fields and no logic is required?
In the phonebook demo, the 'Contact' class is used for communication between Flex and PHP. Notice that 'Contact' is declared in 'classMap' in the CWebServiceAction in SiteController.
Yes I noticed all that. But it doesn't help. You see Contact is a model, its file Contact.php is stored in models directory.
I am not going to create models. I only need to define miscellaneous class that will represent some data structure used only in that SOAP interchange. Well, for example:
class AuthInfo {
/**
* @var string login
* @soap
*/
public $login;
/**
* @var string password
* @soap
*/
public $password;
}