Questions tagged [web-reference]

Web Reference is a technique used in software development to provide access to a resource that is available using Internet protocols

In the code, Web References are generated that locally represent the exposed functionality (methods) of a Web resource. Upon invocation of the local methods, the proxy interacts with the Web resource and returns the results back to the client.

Web References may be created in the same or different programming language or environment than the exposed Web service or resource.

Links:

173 questions
6
votes
4 answers

How to get value from applicationSettings?

I am trying to get value of service in my application from app.config. I have to send it to the application which shows the URL. A web service which I am consuming in this aplication also using it so can not move it to appSettings. I want to get…
Azhar
  • 20,500
  • 38
  • 146
  • 211
6
votes
1 answer

Automatically Update All Web References in a Project in VS

If I have a project file with 50+ web references, instead of going over each web reference one by one and doing right-click-->Update, is there a way to have Visual Studio do it automatically?
Arca
  • 61
  • 3
5
votes
1 answer

web reference configuration issue

I am struggling with how to configure the url to a web reference. Here is the case. I have: old asp.net webservices <----- c# project that compiles to dll <----- website that references the dll (the c# project didn't used to be there but I…
Steven
  • 335
  • 1
  • 3
  • 13
4
votes
1 answer

How do i get to SForceService using .Net Core 3.1 framework

I am able to connect salesforce by using standard dotnet framework with web reference option. But, i am unable to connect SForceService by using dotnet core 3.1 framework as it is using system.web.services namespace which is not available in .net…
kayal
  • 123
  • 12
4
votes
0 answers

"Duplicate compile items" error when generating code from "Add Web Reference" in Rider

I'm creating a .NET core API that consumes a web service with the Rider IDE. I created a new csproj FooBar.Service, and added the web reference. The FooBar.Service.csproj file is as follow:
Boiethios
  • 38,438
  • 19
  • 134
  • 183
4
votes
3 answers

Adding a web reference in Visual Studio 2010 to point to a Sharepoint 2007 site

I'm building a console application that can load a content type and remove the seal on it through C#. In attempting to add a web reference to the application, I'm getting an error which is strange because I use the same web reference in another…
Jesse Roper
  • 1,269
  • 7
  • 31
  • 56
4
votes
3 answers

Problem with updating web reference in visual studio

The Problem is that I have a web reference genereted from WSDL file. Now I have new WSDL but the old location where the WSDL was erlier is not accesible. Where I can change the path to the new WSDL to do update web reference? When I delete my old…
shin
  • 666
  • 2
  • 9
  • 25
4
votes
1 answer

Acces Denied to path when adding Web Reference

I'm working with VS 2010 and I have a winform application that when I'm trying to add ANY Web Reference it finds it but it doesn't let me click on the "Add Reference" button. The wsdl file is on my dektop so there is no reason for me to not have…
CodeEngine
  • 296
  • 1
  • 9
  • 28
4
votes
1 answer

C# Getting XML SOAP response from autogenerated Reference.cs in Visual Studio

In visual studio 2008 using .net 3.5 i have consumed a WSDL which has automatically generated a Reference.cs. This was done by right clicking on References in my project and selecting "Add Web Reference" Using this i can post to the web service and…
CathalMF
  • 9,705
  • 6
  • 70
  • 106
4
votes
1 answer

Change dynamic web reference from web./app.config

I have a problem changing a dynamic web reference in the config file. Changing the url in the config file doesn't have any effect. I have to change the url in .settings and compile for it to change. I added the web reference using the wizard. Set…
Snæbjørn
  • 10,322
  • 14
  • 65
  • 124
3
votes
2 answers

How do you add a web reference through a proxy/firewall?

I'm behind a firewall at work at the moment and I was testing something that I had deployed to my website, and the work proxy seems to be blocking it somewhat. Basically I am getting a message of: Operation is not valid due to the current state of…
crucible
  • 3,109
  • 2
  • 28
  • 35
3
votes
2 answers

there was an error downloading $metadata from web reference

I'm trying to update/add a web reference from visual studio community 2013 but I have experimented a very tedious error as shown in the images: Add web reference image Update web reference image (Adding web reference is been used in new project to…
Diego Arturo
  • 171
  • 1
  • 3
  • 15
3
votes
0 answers

Add a web reference to a project but make the auto-generated proxy classes internal (i.e. not public)

I'm building a class library that uses a web reference in its data access layer, but much to my dismay, there doesn't seem to be an acceptable way to set the access for the auto-generated proxy classes. By default, they're public, but I don't want…
rory.ap
  • 34,009
  • 10
  • 83
  • 174
3
votes
2 answers

Using a .Net 2.0 Web Reference in Visual Studio 2010

I have a .Net 3.5 class library project that I've migrated to use Visual Studio 2010. It still targets .Net 3.5. This project contains two ASP.Net 2.0 style Web References (with the auto generated Reference.cs files). During the migration to VS…
3
votes
2 answers

The type or namespace name 'routing' does not exist in the namespace 'system.web' visual studio

The type or namespace name 'Routing' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) I added web reference System.Web.Routing, but still it showing error.
Firoz Khan
  • 623
  • 1
  • 9
  • 23
1
2
3
11 12