I was able to execute the iwsrchquery in the Search server.My requirement is, if i want to execute the query from the Teamsite server, how i can do it.