E-commerce enterprises are facing the challenges from globalization. However, it costs much time and budget in building and maintaining web-based collaborative e-commerce platforms. It’s also difficult to integrate several collaborative platforms into a larger platform, so as to make better collaboration. Manual collaboration between different platforms results in non-timely information exchange in large scale e-commerce and un-efficient end-to-end business collaboration. Yet a new cost efficient middleware, B2X (business to any), is proposed to integrate different e-commerce platforms and related protocols are defined. The architecture and related protocol of B2X are presented. A prototype of B2X has been built and a continuous integration model for large virtual web-based B2B (Business to Business) collaboration with B2X is presented to enhance the collaboration between the e-commerce enterprises.