Wednesday, July 31, 2013

Adding a Service Reference to an ASMX Service

If you need to add a Service Reference to a non-WCF Service (namely an ASMX Service), the process of obtaining that Service Reference is not exactly straight forward within the Visual Studio IDE/environment.

Here are the steps that you need to follow:


  1. Add a Service Reference
  2. Type in the Url to the ASMX Service and click on the Go button
  3. Click on the Advanced Button
  4. Click on the Add Web Reference button
  5. Once again type in the Url to the ASMX Service
  6. Click on the arrow icon next to the Address Bar to locate the Web Service (or click on the Enter key)
  7. Enter a name for the Web Reference in the Web Reference Name textbox
  8. Click on Add Reference
  9. You should now have the ASMX Web Reference configured in your project.




No comments:

Post a Comment