Thank you for your reply.
Here is another problem that Ive got into when I submit a form to a data connection using rules.If a template has been built using a schema (not a web service)
when it's submited the submited xml is empty (only its root is submited .It seems that in such cases InfoPath submits a submit.xml file that's empty)
Is there any solution to submit an infopath that's been built using a schema to a data connection ?