This issue is resolved. Instead of using the wsdl I used the xsd that was generated by PI for the idoc and it works fine. As per SAP document it should work with wsdl also but it didn't work for me. If anyone knows the reason let me know. I'm good for now
Thanks
Arvind