Wales withstood a fierce challenge from Samoa at Waikato Stadium before coming away with a hard fought and bruising 17-10 victory in Hamilton to get their World Cup show on the road.