Hello Patrick,
Thanks for the reply. In fact the web service is a custom one. What I wanted was a solution or a code that helps me to get users of an active directory group. In fact I found the solution. Here is a helpful link
http://claytoncobb.com/2009/07/19/infopath-user-roles-in-browser-enabled-forms-using-groups/
Regards,