Microsoft has provided a very neat tool which allows a SharePoint farm administrator to change hard coded URLs in InfoPath form templates, Universal Data Connection (UDC) files, and content types in SharePoint for specific scenarios.
You can download this tool using following URL:
Tool to change hard coded URLs in SharePoint
1eb10722-5c08-4583-bee4-17583be1167e|0|.0