The InfoPath user interface does not provide a way for you to change the URL for the Web service that is used as a data source. However, you can change the URL by first extracting the files for your form and then manually modifying Manifest.xsf.
In Windows Explorer, locate C:\Inetpub\Wwwroot\SimpleWebService.
b.
Locate the Service1.asmx file, and then rename the file as Service2.asmx.
2.
Return to InfoPath and test the form as follows:
a.
Follow steps 7a through 7d in the "Create a New Form from the Web Service" section. InfoPath generates the following error message when you click Run Query:
InfoPath cannot run the specified query.
InfoPath either cannot connect to the data source or the service has timed out.
b.
Click OK to dismiss the dialog box.
c.
Click Close Preview to return to design mode.
3.
Change the URL of the Web service in the InfoPath form as follows:
a.
On the File menu, click Extract Form Files.
b.
In the Browse for Folder dialog box, select a folder that will contain the extracted files, and then click OK.
c.
Close InfoPath.
d.
In Windows Explorer, locate the folder where you extracted the files.
e.
Open the Manifest.xsf file in a text editor such as Notepad or an XML editor such as Visual Studio .NET 2003.
f.
Locate the <xsf:webServiceAdapter> tag. Change the wsdlUrl attribute from http://localhost/simplewebservice/service1.asmx?WSDL to
http://localhost/simplewebservice/service2.asmx?WSDL.
g.
Locate the <xsf:operation> tag. Change the serviceUrl attribute from http://localhost/simplewebservice/service1.asmx to
http://localhost/simplewebservice/service2.asmx.
h.
Save your changes to Manifest.xsf, and then close the file.
4.
Test the form as follows:
a.
In Windows Explorer, right-click Manifest.xsf, and then click Design. This opens the form in InfoPath.
b.
Follow step 7 in the "Create a New Form from the Web Service" section to test the form.
Need More Help? Contact a Support professional by E-mail, Online or Phone.
Customer Service For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
Newsgroups Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.