Connect to a web service from an infopath process

  • 23 February 2005
  • 1 reply
  • 0 views

Badge +5
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

1 reply

Badge +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.

Reply