web-reference

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 the object I've got it down to my proxy interferring, but I can't see any advanced s...

Is it possible to change the properties of a WebReferance 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. Althogh what I want is a URL change, I guarantee the Service Description is always going to be the same (except the wsdl:service tag of course which contains the soap:address); I just want to test different ...

How do I change the URL of my web service?

If I change the url in the web.config file will the change be reflected in the .disco, .discomap, and .wsdl files that are in the WebReferences folder? [Edit] I'm using asp.net 2005 ...

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 client. The client is a standard ASMX type web reference proxy auto generated from the se...

Problems consuming webservice on ASP.NET on production(IIS) server

We've implemented some SOAP client code on our ASP.NET site that calls up a remote service. Implementation was basically done by using Visual Studio "Add Web Reference" wizard, adding proper 'using remote.service.namespace' to the code and calling the service. Code works perfect locally(from Visual Studio), but fails on production web s...

Compiled Proxy Class (in bin) vs. Web Reference

I have a handful of ASP.NET websites which communicate with different instances of SQL Server 2005 via a web reference to the report server's web service. However, today I toyed with the notion of using the WSDL tool to create a proxy class from one of the SQL Server instances and, in turn, using the proxy to create a dll (before doing s...

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 the URL lives in only the .config. So what happened to the .disco and .wsdl? Are they com...

URL Behaviour in a Visual Studio Web Reference

Hello, 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. Thanks ...

.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 Library (DLL) project, it adds a Settings.Settings file and an app.config file to the pr...

VS2008 Update Web Reference creates naming conflicts in Reference.cs

Hello there, I have a Web service which, when updated on one computer with VS2008 works perfectly fine, but on another computer does not. The critical difference is the contents of the auto-generated Reference.cs. In the correctly functioning environment, the methods have fully qualified class names, refering to classes in a class libr...

Add Service Reference to WCF Service within Same Project

Is it an acceptable programming practice to add a Service Reference to a Project where the Service being referenced is defined within the same VS Project? (Service and Service Reference are in the same Project) example: MyWebAppProj -Services --MyService -Service References --MyServiceServiceReference.MyServiceClient -Default.aspx.cs ...

Changing the namespace for a Web Reference in a Project to be Made Into a VS Project Template

When I add a web reference to a project, it comes up with a default namespace of: com.wpdevs.myservice. This is the namespace I'd have expected it to use in the application. When I add the using statement to the project, I have to add: using MyProject.com.wpdevs.myservice; I'd like to find a way to eliminate having to reference the ...

Adding web reference is not generating the expected reference.cs file. Absent functions.

I'm working with an old windows app in visual studio 2005. A webserviced referenced in the original app has 2 functions and when i peak inside the auto-generated reference.cs file I notice a couple of other functions to allow async calls have been geenrated i.e. BeginWhateverFunctionNameIsCalled and EndWhateverFunctionNameIsCalled. My ...

SQL reporting services reference

Hi everyone, I want to add service reference to SQL reporting services on local machine. In Reporting Service Configuration Manager under Web Service URL tab I have report service URL exposed, I have tried to add web reference to project with that Web Reference URL, but it can not be found. Please tell me am I missing something or is...

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 2010, the Reference.cs files were updated to use .Net 4.0. Specifically, the constructor att...

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 web services, not WCF services. ...

Changing "web reference" to "service reference" changes method signature

I'm helping out a colleague on this one so if I'm missing some details that's why. We have an asp.net 3.5 web application calling a WCF service. Originally the app used a "Web Reference" to register the service however after having some trouble and burning an incident with Microsoft their solution was to replace the "Web Reference" wit...

In winforms, how do I dynamically change the url of my web reference?

I have 2 web sites with the identical web service. For web service "SampleService", I would like to know how to choose which web server to choose from. Web service: "SampleService" Web reference "SampleWebReference" Web service url: site 1: http://www.samplesite.com Site 2: http://www2.samplesite.com Need: Through code, how do I chan...

Specify CLR namespace of auto-generated web service proxy class

When you add a Web Reference in an ASP.NET project in Visual Studio the web application's root namespace is always added. So, if I add a web reference called MyWebService and the default namespace of the application is MyApplication the namespace of the generated proxy class will be: MyApplication.MyWebService. However, I want to be ab...

How do I consume a webservice running on localhost in a project located on a vm?

I am running a webservice on my development box and I need to test that webservice in a virtual machine that is running on the host(aka the development box). The webservice on the dev box is running at: http://localhost:8100/ws_name.asmx. From the VM I have unsuccessfully tried things like: http://host_machine_ip/ws_name.asmx http...