Hi Sidharth,
Step 1: Create a Service Interface in PI system.
Step 2 : Then go to ECC system and Run tcode SPROXY, Scroll to your own interface and select the service interface that you have created in the PI system. For Eg., see the below screen shot for StudentData_Outb.
Step 3:
Right click on service interface StudentData_Outb and create proxy.
Enter package $tmp and prefix Z
Step 4:
Click on continue, proxy will be created save it and activate it.