Hi VasanthaPrabu,
I am not sure as to what ur doubt is,but hope I am right.
You need to create a submit data connection say WebService1,WebService2 or whatever and then refer to the same in the code given by MFaus.
So go to Tools--->DataConnection in your InfoPath and create a submit dataconnection to a webservice.
Regards,
Abhishek