2

I'm trying to use some code (C#, I think with .NET) I found on the Internet but my Visual Studio 2017 says it can't find System.Web.Services.dll.

Effectively, I went to the reference tab and I didn't find it. Also, I check C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\Microsoft.NETCore.UniversalWindowsPlatform\6.1.9\ref\uap10.0.15138 but nothing I could found.

It's my first time using these technologies (C#, .NET and UWP...) so I am not sure if I'm missing some steps in order to import and use that dll.

Panagiotis Kanavos
  • 120,703
  • 13
  • 188
  • 236
Ender Look
  • 2,303
  • 2
  • 17
  • 41
  • What are you trying to do? `System.Web.Services` is obsolete. It contains classes used to create the old ASMX web services. They were replaced by WCF in 2008 and can't be used in a UWP application anyway. What are you trying to do and why do you think you need that dll? – Panagiotis Kanavos Nov 13 '18 at 15:24
  • @PanagiotisKanavos, I was trying to make an application for the AFIP (AKA: Argentinian taxes) and it shows a C# example of a WSAA which uses that code. It's a pity that all the AFIP documentation is really outdated. – Ender Look Nov 13 '18 at 20:12
  • One can safely assume that the *tax service's* documentation will *never* be appropriate or even adequate when it comes to programming. Their job is to collect taxes, not write tutorials. – Panagiotis Kanavos Nov 14 '18 at 08:07
  • If you want to *call* a web service, you only need to create a proxy from its WSDL descriptions. In most types of applications you can do that by selecting `Add Service Reference` and passing the URL of the service or its WSDL description. This will work with any standards-compliant SOAP service. – Panagiotis Kanavos Nov 14 '18 at 08:10
  • Possible duplicate of [How to Add Web Reference for UWP in VS 2015?](https://stackoverflow.com/questions/35498209/how-to-add-web-reference-for-uwp-in-vs-2015) – Panagiotis Kanavos Nov 14 '18 at 08:12
  • @PanagiotisKanavos, I'm sorry, I am not a software developer, just I am trying to make a program for my parent's shop. So I order to use WSAA it's not mandatory the usage of `System.Web.Services`? – Ender Look Nov 14 '18 at 16:46
  • Don't create a UWP application then. UWP makes sense when you want to deploy the application through Microsoft's App Store. Create a WPF application instead – Panagiotis Kanavos Nov 14 '18 at 16:49
  • @PanagiotisKanavos, you may be right. But if someday I want to share it because it works fine would I be able to deploy it on the App Store?. So returning to my previous question if you don't mind: Is possible to use WSAA (web service authentification and authorizing) without using System.Web.Services or it's mandatory? Thanks – Ender Look Nov 14 '18 at 18:27

1 Answers1

5

You need to add the reference. You must:

  1. Right click on "References" -> "Add Reference"
  2. Navigate to the "Assemblies" -> "Framework" section
  3. Look for the "System.Web.Services" assembly and check it.

Check screenshot for more details.

See Screenshot

Sergiu Muresan
  • 409
  • 2
  • 6