here is a description of what i need exactly:
my DB is mysql. and I have 3 tables that are relevant for this thing:
what need to be done is :
when the object sends the data to the webservice - the web service do the following:
1) checks whether a field name balance in applications table is above 0 - if not it returns a (-1)
2) it insert the records of names and emails to the table appActions
3) it look whether the sender email exsists in the customers table - if it is exists it returns value (0) if not it insert record to the table customer generate a random number (10001-99999) and returns it.
Please also adjust the object to call this web service and show the return values