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
0
votes
2 answers

Nested class no longer nested in web reference

I have a class in a web service that has a nested class in it. namespace MyWS { // web service class with web methods etc. here public class SomeClass { // fields, properties, stuff etc. public class NestedClass …
S_F
  • 877
  • 7
  • 17
0
votes
1 answer

NAV Web Service how to update data via C#?

so bear with me if I'm doing anything wrong. i have been trying to update some data in Nav from C#, but whatever i do i get errors: my code Unit looks like this, this is my method i need to use to update:
Troels Thisted
  • 76
  • 1
  • 16
0
votes
1 answer

How to subclass a class in Web Reference? (class is in reference.cs)

I am building a .dll from a webservice to look like so: namespace MyDllFromWebService { public class AnimalDll_2013 { public AnimalApi.Animal UpdateAnimal(Animal animal) { return new…
0
votes
1 answer

web reference : How to change proxy class code

i'm using web reference to consume a web service the problem is with a decimal attribute which is optional , its value is not passed the web service. i tried to add default attribute and give it a default value it works fine , but i can not change…
Amira
  • 3,184
  • 13
  • 60
  • 95
0
votes
0 answers

Changing development URL to Production in client proxy

I have consumed a web service running behind load balancer using add services in vs2008 and it was exposed the URL to app config but it is not the web service URL but the load balancer url. Now I am having a problem that when we are moving it to…
FatalError
  • 77
  • 2
  • 9
0
votes
1 answer

Webservice Not showing my methods

I have made a web-service which'd give me the User Information. [WebMethod] public void Get_User_Info(string uid) { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["contest"].ConnectionString); SqlCommand com =…
Gaurav
  • 557
  • 4
  • 11
  • 28
0
votes
0 answers

NullReferenceException when creating a web reference class

I have a C# / WPF project that references a webservice. However, sometimes I get a NullReferenceException when creating an instance of the auto-generated class that represents it: var service = new SSO(); The stacktrace is as…
Impworks
  • 2,647
  • 3
  • 25
  • 53
0
votes
1 answer

Web Reference works, but A Service Reference complains about Soap version

I have to connect to a legacy web service. In visual studio, if I do a Add Service Reference, then enter the url of the WSDL file on server. My service shows up, and I write the code against it. But when I run the code I get this…
sheamus
  • 3,001
  • 4
  • 31
  • 54
0
votes
1 answer

Automated Web Reference Switching in C# project with NAnt

Problem: I have a C# 4.0 project with web references in Visual Studio 2010. I have two sets of web references, but I do not want to use them simultaneously. I want to be able to automatically remove all my current ones, add all the new ones, and…
DLH
  • 146
  • 6
0
votes
1 answer

Security notification bar

I need to add a web reference in Visual Studio 2012 (because service reference generates a blank reference CS and I have given up after hours of googling). When I go to add the web reference (add service reference → advanced → add web reference) and…
Dan Cook
  • 1,935
  • 7
  • 26
  • 50
0
votes
1 answer

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…
TMcManemy
  • 814
  • 9
  • 20
0
votes
2 answers

Consuming a WCF Service With ClientCredentialType="UserName" From .Net 2.0

I'm helping someone use Visual Studio Tools For Applications to connect an Infopath application to a service written using WCF that requires a username and password be sent in the SOAP header (clientCredentialType="UserName"). The service is using…
omatase
  • 1,551
  • 1
  • 18
  • 42
0
votes
2 answers

Update web service at runtime

I have a MVC application which i m integrating with slaesforce. And it is working fine, salesforce provied WSDL which is used in/as a web reference in MVC application and successfully access salesforce data. Now i m in a situation where i need to…
Anil D
  • 1,989
  • 6
  • 29
  • 60
0
votes
2 answers

Passing web reference objects between dll's

I have a project with two dll's (I'll name them A & B). In the first dll I want to pass a object of a web reference to my other dll. The two dll's use properties from the object so I have added a web reference to the service in both my dll's. But…
Robby Smet
  • 4,649
  • 8
  • 61
  • 104
0
votes
2 answers

C# web reference -setting the Timeout in app.config

I have a program that uses web reference in order to connect to the server. The web reference is configured in app.config file in the following way:
mary
  • 869
  • 5
  • 13
  • 26
1 2 3
11
12