Questions tagged [wcfserviceclient]

84 questions
2
votes
1 answer

Cannot implicitly convert type 'System.Threading.Tasks.Task to 'string'

I have a WCF Service with the method to return a string. WCF Service : public string selectName(int input) { string firstN, surN,result; con.Open(); SqlCommand cmd = new SqlCommand("SELECT FirstName, Surname FROM…
TeeHP
  • 45
  • 1
  • 1
  • 7
2
votes
1 answer

WCF using REST, having some binding questions

I am really confused right now and I can't get any right answers anywhere. My confusions are: 1) Isn't wsHttpBinging (which is beefed up basicHttpBinding) used in SOAP instead of REST and REST only uses webHttpBinding? 2) Also, DOES silverlight 4…
netlogging
  • 35
  • 5
2
votes
1 answer

Share type between two WCF services

I have two WCF services on my project. Services are sharing one type, but each service generating its own type. Is it possible to generate one class for both services? Sample code for server side: [DataContract] class MyClass { /*some properties*/ }…
Samvel Siradeghyan
  • 3,523
  • 3
  • 30
  • 49
2
votes
0 answers

Task-based async calls using ChannelFactory and ChannelFactory caching

I'm working on a project that is consuming SOAP services via WCF. Initially, we used generated service references because it was easy to get started. This provides ChannelFactory caching and task-based async methods out of the box, which is…
w.brian
  • 16,296
  • 14
  • 69
  • 118
2
votes
0 answers

ServiceKnownType causing WCF Service delayed connection

I'm having a WCF service with wsHttpBinding. The service contract interface is declared with ServiceKnownTypeAttribute as: [ServiceKnownType("GetKnownTypes", typeof(Helper))] public interface IService1 The GetKnownTypes method returns a collection…
ni3a
  • 461
  • 2
  • 7
  • 10
2
votes
1 answer

WCF service self hosting with https

Currenlty there is a Wcf service hosted as windows service in one of our client side machine, actually currently this is working with normal http call. As we need to use https instead of http, for that we modified app.config but after starting the…
reapen
  • 705
  • 4
  • 13
  • 26
1
vote
1 answer

The URI prefix is not recognized. Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:8090/'

I have gone through many answers on Stackoverflow before posting my question. None of the answers seemed to resolve my issue. I have created a simple WCF service and have hosted it in Console application using TCP binding. My Host App.config:
Cherylaksh
  • 248
  • 5
  • 20
1
vote
1 answer

WCF Client does not accept response from service. Cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher

I am writing for the first time something related to wcf, I did everything according to the documentation, etc., but I do not understand why my client does not want to receive data from the service. Moreover, it only accepts data, from the service…
1
vote
3 answers

connecting to wcf service hosted on domain from a client that is not on the domain

I would like an example or explanation of how to connect a client to a wcf service when the client is not on the domain. I imagine there is a way to specify domain credentials with the client and the wcf service could talk to the authority (dc) to…
Csharpfunbag
  • 395
  • 3
  • 19
1
vote
1 answer

Unable to browse discovery service url through Visual Studio 2017

I have a wcf service with bindings as basicHttpBinding. I am trying to connect to client environment using clients discovery url. I had made changes in Hosts file and added this in App.Config. This works fine if i create a installer. I am able to…
1
vote
1 answer

WCF: Are metadata required to consume WCF service?

I created WCF service (last year) that is consumed by Silverlight application and it doesn't have metadata (doesn't have IMetadataExchange endpoint). Now I need WCF service to be consumed by windows console application and I can't add reference to…
Budda
  • 18,015
  • 33
  • 124
  • 206
1
vote
1 answer

Error while getting the result from the wcf service in silverlight

Am using silverlight4.0 and using the WCF service and my functnalities are working fine and at some point of time am getting an exception as like "The remote server returned an error: NotFound." this was inner exception message and the response…
Prabhakaran
  • 1,264
  • 2
  • 20
  • 47
1
vote
1 answer

c# WPF and WCF mapping problem

I'm actually trying to create a wpf project witch connected to the WCF via services references, I'm also using the MVVM pattern in my wpf project and I have a problem when I declare in my CTOR of my viewModel the serviceManager ! My view.xaml says…
Jaguar
  • 339
  • 2
  • 3
  • 9
1
vote
1 answer

The socket connection was aborted while consuming wcf service in windows service

I created wcf service library with duplex communication and hosting using windows service, and one more project for clinet i.e, inside windows service I added wcf service reference and trying to consume service. when I try to call wcf service…
N.RaviKumar
  • 275
  • 1
  • 5
  • 14
1
vote
0 answers

Pass table as parameter sqlQuery c#

I want to pass the table as parameter for my sqlQuery . I have a lot of tables with the same colums but different values so it would be nice if the costumer could choose the table . [WebGet] public List GetCallersByCallerIdF(string…