start with code from wifi shield, use it to get wifi working, then slice the part for ethernet shield---cut out the parts that "send_to_ethernet" and replace with "send to wifi"
never done this before, but
maybe posting what data you have found could help?