I am trying to connect to a web service from an infopath process by adding a web reference to the project.
The error message is just as the following image.
Please advice any solutions
+8
You can't add the "xyz.asmx" file to Studio as a file reference, you have to discover the web service and allow Studio to create the reference file for you.
So in this case you'll have to:
1. Type the URL of the web service in the WSDL URL textbox, enter credentials if needed and click the "Discover" button.
2. If everything completed successfully, you'll see that Studio has generated a dll in the working directory of the solution (see attachment).
3. Now, click on the "Select" button on the top right of the dialog box and the dll will be added to the solution.
Note that it does not add the "xyz.asmx" file, but the dll generated.
So in this case you'll have to:
1. Type the URL of the web service in the WSDL URL textbox, enter credentials if needed and click the "Discover" button.
2. If everything completed successfully, you'll see that Studio has generated a dll in the working directory of the solution (see attachment).
3. Now, click on the "Select" button on the top right of the dialog box and the dll will be added to the solution.
Note that it does not add the "xyz.asmx" file, but the dll generated.
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.