Questions tagged [service-reference]

A Service Reference is a Visual Studio construct which generates code from service metadata (possibly from a service WSDL). It produces classes, interfaces, and configuration which can be used by client code to access the service.

service-reference
Filter by
Sorted by
Tagged with
1 vote
1 answer
2k views

Copy service reference from one project to another project in same solution

We have one service reference in one project of a solution. I am trying to move this service reference to new project in same solution. But adding the service reference in new project using URL ...
Vicky's user avatar
  • 694
1 vote
0 answers
298 views

NopCommerce - How Can I use wsdl Service Reference in the plugin

Recently I'm working on a payment plugin for zarinpal.com gate way. I have to add a service reference by this URL : https://sandbox.zarinpal.com/pg/services/WebGate/wsdl Every thing is ok but in ...
Arash.Zandi's user avatar
  • 1,257
1 vote
1 answer
1k views

How to get the correct ServiceReference and its endpoint-address for a WCF-Webservice on installation

I'm facing a problem going into the installation of a project of mine. It consists of three parts, a clientside WindowsForms-application, a WCF-Webservice and a Database (SQLExpress atm). At the ...
Daniel's user avatar
  • 608
1 vote
0 answers
394 views

What is the .NET equivalent of this PHP web service call?

I am attempting to utilise an API, and the providers can only offer a PHP sample, which I have summarised as follows (with sensitive data removed): <?php ini_set('...
Gary Wright's user avatar
  • 2,451
1 vote
0 answers
460 views

KnownType is not autogenerated in reference.cs

I have two types defined in my wcf webservice. DynamicFields and ClassA. [DataContract] [KnownType(typeof(ClassA[]))] public class DynamicFields { [DataMember] public Dictionary<string, ...
Liu's user avatar
  • 972
1 vote
0 answers
182 views

How to call wcf service with out added service reference using channel factory

Can any one help me on this. "How to call wcf service with out added service reference using channel factory". I have used this code : BasicHttpBinding binding = new BasicHttpBinding(); ...
Nidhi Tiwari's user avatar
1 vote
0 answers
551 views

how to integration test wcf Service Reference client

We are exposing an wcf SDK of our apps via an asp.net mvc route as seen in the RouteConfig below. We also utilize a Service Reference client project for our apps to call the SDKs of our other apps. ...
cResults's user avatar
  • 763
1 vote
0 answers
403 views

Configure NTLM (Windows Authentication) for a SOAP ServiceReference

I'm getting this error in my program: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'. What i ...
Junior Carba's user avatar
1 vote
1 answer
655 views

VS 2015 WCF service reference is not updating

Currently I converted a solution VS2010 to VS2015 and conversion was successful. Now when I am updating existing WCF service and it's showing 'Service reference update complete'. But I am not getting ...
Jakaria's user avatar
  • 171
1 vote
1 answer
266 views

Change the full name of service reference in Visual Studio

When I add a service reference to a project the full namespace of the service will be SolutionName.ProjectName.ServiceName. How can I change the full namespace to whatever I want, for example ...
budahead's user avatar
  • 185
1 vote
1 answer
157 views

Unexpected Refactoring when adding service reference in Visual Studio 2012 for Windows Desktop

In an earlier project, I added a service reference in Visual Studio C# 2010 and the code generated by Studio was this (the third-party web service was probably created with WCF): System.Guid ...
Pep's user avatar
  • 2,007
1 vote
1 answer
90 views

Datagridview is blank - trying to populate from API service reference

I have been all over the net today trying different things, but I am just missing the boat somehow. I am trying to populate a datagridview with data from a supplied api. However, when the code ...
Dewayne Pinion's user avatar
1 vote
0 answers
86 views

Interfaces not properly represent in proxy objects

Using many of the fine examples on this website, I have gotten my WCF service to properly serialize and deserialize concrete objects of interface types across the wire. Unfortunately, why seems to be ...
Steve H.'s user avatar
  • 3,313
1 vote
0 answers
35 views

Verify Service Proxy Useage

Referencing this answer, I'm attempting to establish a proxy connection for a service reference, but am having trouble verifying that it's actually being used. In my app.config, I have <system....
Eiketsu's user avatar
  • 203
1 vote
2 answers
174 views

Add proxy client for specific endpoint

My WCF service has multiple endpoints. When I choose "Add service reference" I see the Service with multiple endpoints (image below) I don't need proxies for all this endpoints. I need ...
FunctorPrototype's user avatar
1 vote
0 answers
847 views

Display items in listbox with entity framework

I am trying to display items from my Entity framework database into listbox. I have two different projects. First is Empty Web app and the second is Windows Forms (client). When i go into menu in my ...
aiden87's user avatar
  • 939
1 vote
0 answers
108 views

Windows store app, Service Reference

In a windows store app i have a Service Reference that looks something like this this is the xaml of the wsdl: http://paste2.org/B00MD3Wt and in the generated Referece.cs file i have this ... ...
Thought's user avatar
  • 5,676
1 vote
0 answers
360 views

add service reference not generating specified field for optional value type

I have the following in an xsd - <xsd:complexType name="isPermissableRq_Type"> <xsd:sequence> <xsd:element name="accNr" type="ObjectId_Type" minOccurs="0" maxOccurs="1"/> ...
newbie_86's user avatar
  • 4,560
1 vote
0 answers
818 views

VS2013: Add Service Reference misses a contract

I am trying to add a Service Reference to a class library in a VS2013 solution. When I point the Add Service Reference dialog at the mex endpoint of the service, I see the following 3 contracts: I ...
Daniel Arkley's user avatar
1 vote
2 answers
2k views

How do you get the UserName from UserInformationListItem in SharePoint Service Reference

I am accessing SharePoint List data via WCF and listdata.svc One of my lists called Tasks has a field named 'AssignedTo'. When I loop through the list items, the AssignedTo field returns a ...
Hannah Castellaw's user avatar
1 vote
0 answers
871 views

updating WCF service reference - could not load Entity Framework

I added two additional methods to my WCF service and now I want to update my service reference but it continues to error for some reason that I can't seem to figure out. It throws a warning on trying ...
Adam's user avatar
  • 388
1 vote
1 answer
2k views

Add Service ref to Windows Service within current solution?

I have a solution that contains 2 projects, 1 client(consol) and 1 windows service(debugs in console). The problem is that the client needs a service ref to the service but its not possible to add a ...
Banshee's user avatar
  • 15.6k
1 vote
2 answers
5k views

How to add a "service reference" in a asp.net website?

I just found out that I get the "Add Service Reference" context menu option in a class library project but not in a "Web Site" project. Now I am too far in this project and i need to use the Paypal ...
Samy S.Rathore's user avatar
1 vote
0 answers
321 views

Add Service Reference to windows Phone Project/Portable DLL fails

I have a problem, when I add a service reference to my windows Phone 7 project it doesn't generate any of the expected Methods. I tried to create it in a portable Library but still the same, I ...
Saad Sneed's user avatar
1 vote
0 answers
145 views

In Visual studio how can I get my service reference to inherit from another class?

I'm struggling a bit with what I think should be quite simple and no amount of searching has provided me with any answers. I am working on a WCF project in Visual Studio 2012 which makes use of a ...
David's user avatar
  • 135
1 vote
0 answers
200 views

Add Service Reference Link is not showing in Visual Studio 2010

I am unable to view the add service reference view. I have tried installing visual studio and re-installing it again, But the problem is persistent. Below is the image.
user avatar
1 vote
1 answer
969 views

Using WCF Service to access SQL Server in Entity Framework -- Why does it seem like it's using Integrated Security?

Quick Background I received code from a third party (contracted software) that I have to move onto my servers. When I run the code using their connections and service references, everything works well....
rownage's user avatar
  • 2,402
1 vote
0 answers
2k views

Getting a Windows Client to Change its Web Service Endpoint Dynamically – Problems with a WSDL

This describes a problem I had and the solution found, which I did not see discussed elsewhere (except the Background material). Background – What Should Work (but May Not) Let’s assume a web ...
Geepster's user avatar
1 vote
4 answers
2k views

What's the difference between "Add reference" and "Add service reference"?

I have a C#/WCF service. I'm having problems adding a service reference to it, so one of my colleagues suggested that I simply add a reference to it using a library. The second answer here suggests ...
Noich's user avatar
  • 15k
1 vote
1 answer
209 views

WCF service reference in Metro (Store) application won't work after update

Here's the scenario: On the server there's WCF service with some simple methods and few classes in it. The client is Metro (Store) app. Communication between the two worked just fine after service ...
DetectiveShmee's user avatar
1 vote
0 answers
493 views

generate objects from wcf service reference with T4

I am working with integrating an MVC4 application with WCF services. At present, I generate a service reference from the WCF services endpoint using svcutil. I have a number of services eg. a ...
amateur's user avatar
  • 44k
1 vote
1 answer
531 views

generating service references of wcf endpoints in client

I am currently working with WCF services. I am writing both the client (consuming application) and host (services application). Working on the client, I am writing the code for it, I have 3 options. ...
amateur's user avatar
  • 44k
1 vote
1 answer
284 views

SharePoint UserControl without Codebehind: How do I add/consume a Service Reference?

I have a several projects full of .ascx UserControls that contain C# code blocks rather than having codebehind pages. I'm looking to consume a WCF service I've created, and I've added the Service ...
ccrook's user avatar
  • 15
1 vote
2 answers
5k views

WCF Update Service Reference Error

I'm desesperated, I'm trying to update an existing service reference to a WCF service (sharing types) and I can't. I've tryied all what I've found on Google (social.msdn, stackoverflow, ...) but I ...
Marc's user avatar
  • 1,409
1 vote
0 answers
76 views

bypass proxy to add service reference [duplicate]

I need to add a service reference to my .Net project but proxy locks my actions (Error: proxy authentication required). How can I do that?
Calax's user avatar
  • 65
1 vote
1 answer
1k views

C# WCF Service Reference exposes concrete class instead of inherited abstract class when abstract class is referenced

I am generating a C# service reference using Visual Studio 2010 from my wsdl. (Simplified example, please excuse any syntax errors): <xs:complexType name="Constraints"> <xs:sequence> ...
Joe W's user avatar
  • 1,859
1 vote
1 answer
2k views

Create web service using external WSDL through Add Service Reference

I have an ASP.NET MVC3 project in .NET 4 which needs to act as a SOAP server to receive notifications from another website. I have created web services before, but I don't know how to set up a way to ...
enashnash's user avatar
  • 1,578
1 vote
1 answer
597 views

VB.NET Case Insensitive Web Reference enumeration Issue

I created a Web Reference (also tried Service Reference) to a WSDL that had the following node inside an xsd: <xs:element name="filter"> <xs:complexType> <xs:choice ...
Josh's user avatar
  • 8,359
1 vote
1 answer
2k views

"Add Service Reference..." to xsd

I can create a service reference in Visual Studio 2010 to an xsd. That reference downloads all the linked xsd files. However, I have 2 problems I'd like to see if there are solutions: The URL for ...
Mark A Johnson's user avatar
1 vote
1 answer
809 views

WCF Add Service Reference

I am wanting to know how to add more then just one interface type in a service. at the moment i can only get one to show . I have a few other interfaces i would like to see appear under the service ...
Christopher Leach's user avatar
1 vote
2 answers
924 views

OData and ApiKey url-parameter through ServiceReference

ApiKey is used to control the usage and it is affixed as an url parameter (implemented using somewhat modified version of this solution). Question is, how to go about appending this parameter when ...
Kevin's user avatar
  • 11
1 vote
0 answers
473 views

silverlight service reference from wsdl - methods missing

I'm successfully creating a Service Reference for a silverlight application by pointing to a local wsdl file. The preview pane shows the 6 methods avaialble in this wsdl. However, the generated ...
Brady Moritz's user avatar
  • 8,774
1 vote
2 answers
139 views

refreshing service references won't work

I'm working on a .net Mail Client/Service in Visual Studio 2010. The problem I experience right now is that if I change my Service, the client does not notice these changes. This is how I proceed: I ...
PogoMips's user avatar
  • 3,617
0 votes
2 answers
543 views

Why does Silverlight Add Service Ref. use eventing instead of IAsyncResult?

Ye Olde Add Web Reference generates XXXAsync calls to services that use eventing to inform the caller that the call had completed. Add Service Reference in something like a WPF or console app, when ...
nlawalker's user avatar
  • 6,444
0 votes
3 answers
4k views

How do you consume a RESTful WCF service from an ASP project using a service reference?

I am developing a RESTful WCF service which I then want to consume from a separate ASP.net Project. Is it possible to use a service reference from within the ASP project to consume the service using ...
TeamWild's user avatar
  • 2,520
0 votes
3 answers
229 views

When to add a service reference?

I'm building a WCF service that will get deployed to a server running IIS. I can add the service reference from the current solution and use it fine. If I deploy the service to that particular ...
Steven Evers's user avatar
  • 16.9k
0 votes
1 answer
3k views

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 ...
Aaron Hoffman's user avatar
0 votes
2 answers
5k views

Unable to access service reference

I have successfully added a service reference to my Visual Studio 2013 project. I cannot however reference it in code. For example, given the project name "myproject", and the service reference name ...
tintyethan's user avatar
  • 1,784
0 votes
2 answers
81 views

Using WCF with EF in many projects

I have WCF service responsible for exposing services and connecting with local database MSSQL. I generate client of this service in a few projects, e.g. Proj1 and Proj2. In Proj3 I have references ...
Saint's user avatar
  • 5,427
0 votes
3 answers
4k views

Why is the <system.serviceModel> section missing from app.config?

I'm trying to consume a WCF service. I added a Service Reference, and now I'm trying to call it: BusStopServiceBinding.BusStopPortTypeClient client = new BusStopServiceBinding.BusStopPortTypeClient();...
escargot agile's user avatar

1
3 4
5
6 7
10