I2C ,Arduino ,Xbee

Hi, I am planning a project but i am a bit lost and i don't know from where to start as i am a bit new to Arduino and Xbee

I have a digital pot which uses I2C which will be controlled from an Arduino Uno on top of the arduino i have an Xbee s2 .On the other side i have an Arduino Yun and on top of it i have an xbee .I want to have control of the digital pot from a web server.I have managed to control each section using some tutorials but i am a bit confused on how to bring the project together.

Thanks