Hi Shweta,
I haven't actually done this before, but after browsing through the InfoPath SDK I am pretty sure you could do this using code. Take a look at the WebServiceAdapter object and I think you should be able to set the query parameters from within the input property. A quck code example would be something like this:
var objWSAdapter;
objWSAdapter = XDocument.DataObjects("Web Service Connection").QueryAdapter;
// Display so we can see what's going on in this input property
XDocument.UI.Alert( "Old input value: " + objWSAdapter );
// Set a new input property with appropriate stuff
objWSAdapter.Input = "New input string - this is probably going to be XML";
I hope this helps, please let us know if you figure it out!
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge