Hello Vishal,
You do not need to anything special configuration in XI. The ECC system should ensure to send proxy message along with attachment to XI IE using proxy configuration. In XI, use XI adapter to send this message to BW. Of course, you need type-H rfc destination to BW from XI and it should be used in XI channel to BW.
Regards,
Praveen Gujjeti