Hi,
You can achieve this functionality by using the GetListItems web method. For the details about the Get List Items method, go throuogh the following link.
http://www.infopathdev.com/blogs/agni/archive/2006/05/15/Query-for-Items-in-SharePoint-Form-Library-Using-GetListItems-Web-Method.aspx