Hi,
In a webservice i need to use an array as a input and define the keys of array.I saw from a forum that creating a class for the array elements can do this thing.Like
class WebServiceData
{
/**
* @var string username of customer
* @soap
*/
public $username;
/**
* @var integer
* @soap
*/
public $age;
}
and my server function I defined this as,
/**
* Add member in to SugarCRM table
* @param WebServiceData
* @return object
* @soap
*/
this works correctly.But my problem is do I need to create each one class, to define many arrays
Also need to know how to define maxOccurs, minOccurs