Resistivity of Inhomogeneous Superconducting Wires