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:

171 questions
96
votes
9 answers

Getting RAW Soap Data from a Web Reference Client running in ASP.net

I'm trying to trouble shoot a web service client in my current project. I'm not sure of the platform of the Service Server (Most likely LAMP). I believe there is a fault on their side of the fence as i have eliminated the potential issues with my…
Andrew Harry
  • 13,417
  • 16
  • 64
  • 101
33
votes
4 answers

How to add a Web reference Visual Studio 2012

Is it possible to add a web reference to my project in Visual Studio 2012? In Visual Studio 2010 it was possible by clicking the "Advanced" button in the "Add Service Reference" dialog, as it is written on this page : Add Web Reference in Visual…
ibogolyubskiy
  • 2,241
  • 3
  • 24
  • 50
16
votes
3 answers

Where do I set the CookieContainer on a Service Reference?

When adding WebService Reference to an ASMX Service on a .NET 2.0 project for example, var objService = new NameSpace.groupservices(); there exists, objService.CookieContainer = new System.Net.CookieContainer(); When adding ServiceReference to an…
user677607
16
votes
3 answers

Adding Authorization Header to Web Reference

I'm attempting to make requests to a client's web service (I don't know the underlying platform at the client). I've consumed the client's WSDL in Visual Studio 2010 using "Add Web Reference" and generated my proxy class (called "ContactService").…
Mike
  • 365
  • 1
  • 2
  • 12
15
votes
2 answers

URL Behaviour in a Visual Studio Web Reference

Please can some one explain exactly what the URL Behaviour (Static or Dynamic) property for a Web Reference in Visual Studio is for. I believe it affects where the URl for the Web Service is stored but I don't have a clear understanding.
David A Gibson
  • 1,943
  • 3
  • 34
  • 60
14
votes
4 answers

SGEN failure: An attempt was made to load an assembly with an incorrect format in VS2008

I was able to find several similar questions asked and answered, but none of the answers or exact conditions applied to my situation. I have a .NET 3.5 project being built for x64. I also have an x64 mixed mode reference (also targeting .NET…
Anthony
  • 245
  • 1
  • 2
  • 10
12
votes
2 answers

.net core add Web Reference

I have two Web Project. First was created about 2-3 weeks ago and Second today. I want to add Web Reference to the second web project. First old Project Solution View Second new Project Solution View In new Project I can't find how to add Web…
10
votes
1 answer

How do I move a Web References from one project to another in VS2010?

I'm doing some solution housecleaning and want to move a few web references from one project to another. VS2010 will not let me drag/drop them from one project to another. What is the easiest way to move them? If it matters these are old-style asmx…
Gabe Moothart
  • 28,997
  • 13
  • 73
  • 98
10
votes
1 answer

WCF Error {"The username is not provided. Specify username in ClientCredentials."}

I have a WCF webservice hosted in IIS. Here is the configuration of the same: When i try to consume this particular service (when added as a service reference) in my WinForms client, it throw this exception: The username is not provided. Specify…
Nuclear - Core
  • 149
  • 1
  • 2
  • 9
8
votes
3 answers

.NET DLL Settings and Config when there's a Web Reference - whats going on?

My understanding is, that .NET doesn't really 'do' config files for DLLs - only the main Executable or Web App gets a config file, and all DLLs referenced by the Executable/Web App read from that. But in VS2008, if you add a Web Reference to a Class…
codeulike
  • 20,946
  • 27
  • 113
  • 161
8
votes
2 answers

Add WSSE SOAP Header to Web Reference

I'm trying to add a WSSE SOAP Header to my service call, but most of the examples focusses on WCF. I'm not making using of WCF. I have added a Web Reference (WSDL). I have tried various methods without success, like - overriding the GetWebRequest…
Richard Bailey
  • 2,109
  • 3
  • 20
  • 44
7
votes
3 answers

WCF to ASMX binding much slower returning large data than standard web reference

I am binding to an existing ASMX web service using a WCF service reference. I have a method that returns a DataSet object that contains a string of 500k length. As a standard "old-school" web reference, calling this method takes around 2-3 seconds…
Duncan Watts
  • 1,323
  • 8
  • 26
7
votes
2 answers

Is it possible to change the properties of a WebReference in run-time?

I am trying to come up with such a solution that the user is going to enter the URL of a web-service and it is going to be tested. Although what I want is a URL change, I guarantee the Service Description is always going to be the same (except the…
tafa
  • 6,858
  • 3
  • 33
  • 38
7
votes
2 answers

Can I change a web service reference URL in the Config file?

I have an application targeting the 2.0 .NET framework. The solution is using the VS web service reference folder. A grep through the solution reveals that this URL lives in a handful of files. However in the deployed application a search shows that…
Nick
  • 17,810
  • 47
  • 175
  • 303
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
  • 19,214
  • 38
  • 134
  • 202
1
2 3
11 12