Questions tagged [wcf]

Windows Communication Foundation is a part of the .NET Framework that provides a unified programming model for rapidly building service-oriented applications.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

How to consume a SOAP API using Python. Soap API 1.2 using WCF service

I have been working on a project that uses SOAP API. I was provided with two urls (able to consume) and request xml looks like this it uses LookupUser_Request. <soapenv:Envelope xmlns:soapenv=&...
Nipun's user avatar
  • 13
0 votes
0 answers
19 views

Unable to authenticate WCF service with certificate when hosted to Azure App Service

We have migrated WCF services from windows server to App service. Authentication to WCF services is happening using certificates. In App services authentication using client certificate is causing an ...
user9057272's user avatar
0 votes
0 answers
5 views

ChannelFactory resolving an address for a different tenant

We have a multi tenant architecture in the cloud.I have noticed a strange behavior where often App1 of tenant 1 calls App2 of tenant 2. This is not a frequent behavior and happens few times a day. ...
Rohit's user avatar
  • 1
0 votes
0 answers
13 views

Using WCF connection in Blazor .NET6 throwing error

I want to use a WCF service into Blazor APP .NET6. I added Connection Service using a .asmx service URL in the project. But while running the Below Code new System.ServiceModel.BasicHttpBinding(), ...
pio sankar's user avatar
0 votes
0 answers
12 views

What does client certificate negotiation enabled do?

I know this has been answered but I felt it doesnt confirm what I experienced having read When do I need "Negotiate Client Certificate" to be set to Enabled? Firstly a third party sent us ...
cv65user's user avatar
0 votes
3 answers
26 views

How to pass JWT token in header from WCF Client (Proxy class) in .NET 4.7.2?

We have a WCF service in .NET 4.7.2. This WCF has been configured for "oAuth0"(Not Aure but a third party provider). We are able to call a method on this service using PostMan successfully. ...
spalMcc's user avatar
  • 21
0 votes
1 answer
20 views

C# WCF with Log4Net fails just some logging

We have WCF Application built with .NET Framework 4.8, which uses Log4Net (level value="DEBUG") for logging. It is able to log everything on local machine in both debug and release mode. But ...
CeeSharpDev's user avatar
0 votes
1 answer
26 views

mandatory one way operation for duplex service

Is it mandatory for all methods inside the duplex service interface to be one-way ? Can the interface not contain methods both one way and request reply pattern at the same time ? Asking because the ...
sajis997's user avatar
  • 1,059
0 votes
0 answers
44 views

HttpclientFactory SendAsync timesout while calling a XML web service

We are using the HttpClientFactory SendAsync method, and it calls web service, the web service gives a response on time however SendAsync goes into a processing state and eventually it times out after ...
Mysterious288's user avatar
0 votes
1 answer
43 views

WCF session timeout after 20 minutes even if I'm using the application [ASP.NET]

My application keeps getting timed out after 20 minutes even if I'm using it. Here's the code: <sessionState mode="Custom" timeout="20" /> Now, I know one way to fix it is ...
Coding_ninja's user avatar
0 votes
0 answers
27 views

WCF Connected SOAP Service xml Deserialization Issue of .net Generated Classes same parent child name

I Am facing an issue, i connected to a WCF service in my .net 6 web API. the Expected xml to be deserialized into class is below <AttributeGroups> <DisplayName>Product ...
Jaspreet Singh's user avatar
0 votes
0 answers
13 views

I have this error when I Invoke WCF Reference in ASP.NET CORE 6 As bellow

'The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Bearer realm="null",error="invalid_token",...
Zaid's user avatar
  • 1
0 votes
1 answer
33 views

Get Caller IP address using WCF 4.5 in and it should work in load balancing

I searched in google and there are lots of solution but I do not get actual caller IP address. The sample code as follows: OperationContext context = OperationContext.Current; MessageProperties ...
Morshed's user avatar
  • 165
0 votes
0 answers
21 views

How can I generate OperationContract(Action, ReplyAction) in ChannelFactory automatically for a WCF service in C#?

I am working on a dashboard monitoring application. It's a REST API application using .Net Core 6.0 (C#) As part of this project, I need to monitor the activity of several web applications. Most of ...
iVelesco's user avatar
0 votes
1 answer
33 views

WCF and API communication is creating a deadlock (httpClient)

We have a service API (SERVICE) in .netcore 6, a Wcf Services (WCF) in .netframework 4.7.2 and a gateway API (GATEWAY) in .netcore 6. It acts as a gateway to access WCF services The use case is the ...
ghalaax's user avatar
  • 11
0 votes
1 answer
53 views

WCF - Send multiple requests to a [ConcurrencyMode.Multiple] service, but it's still sequentially, except sending the first request

I have a WCF sample with ConcurrencyMode = Multiple and the binding mode is WSHttpBinding [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple, InstanceContextMode = InstanceContextMode....
Hau Vo's user avatar
  • 1
0 votes
0 answers
45 views

Client certification coming back as anonymous in iis/c#

I have a small c# application that makes a call to another service. That call requires a certification that expired the other week. I created a new certificate and this new certificate is working ...
asymmonds's user avatar
0 votes
1 answer
16 views

How SOAP header should be added in Dynamically invoked web service using c#?

The below code invoke the webservice dynamically and process the request. How to add a soapheader to this dynamically called service? HttpWebRequest myWebRequest = (HttpWebRequest)WebRequest....
Manoj's user avatar
  • 41
0 votes
0 answers
18 views

WCF service is not available access under HTTP (ERR_CONNECTION_RESET)

I have a WCF service (WebHttpBinding) running successfully. I call it from browser like this: http://xxxxx:9000/LicenseService/GetInterfaceVersion Then browser displays: "1.0" The WCF ...
Murat's user avatar
  • 36
0 votes
0 answers
16 views

WCF, MessageSecurityException when processing response: The Basic256Sha256 algorithm suite does not support for the 'Digest' operation

I am using a WCF client generated in c# and I use a http sniffer(fiddler) for showing the communication that seems to be okay (http 200): However it seems there is a problem when WCF parses the ...
MirlvsMaximvs's user avatar
0 votes
1 answer
25 views

WCF C# - Need to send multiple response to client for a single request

Based on the single request invoke, Need to send multiple responses on timely basis to single client. The binding is Netnamedpipe. I couldn't find anything.
Prakash's user avatar
0 votes
0 answers
35 views

How to do select query in C# WCF service in Visual Studio and how to get the returned results?

I'm currently trying to view the details of the table using a given id. I need to use select query to retrieve the data from the database. I tried working with ExecuteNonQuery, but it crashes. After I ...
Se55's user avatar
  • 1
0 votes
0 answers
42 views

C# WCF Remove namespace WSDL in DataMember

I'm trying to create a WSDL on Local Computer based End user specification XML, Using C# and WCF i can create the WSDL XML. But there is a different namespace on DataContract , i want to remove the ...
XMozart's user avatar
  • 849
0 votes
0 answers
23 views

Getting error CORS in after host wcf RESTful in Windows Service

Error CORS appear when other domain request to wcf Restful. Here my App.config in window services. I just follow some code create wcf resful host in window service in this link https://www.codeproject....
Wan Aideed's user avatar
0 votes
0 answers
40 views

WCF SOAP unencoded CDATA body

I`m having a really hard time trying to figure out how can I instruct the WCF serializer to not encode the content of the SOAP body as it consists of a single XML node which MUST have a CDATA inner ...
AlinF's user avatar
  • 13
3 votes
1 answer
134 views

.net framework 4.7.2 and Microsoft EnterpriseLibrary v5 version incompatibility?

I have my projects currently targeting .Net Framework 4.5.2 and using Microsoft EnterpriseLibrary.Data 5.0.505.0. If I change my projects target to .Net Framework to 4.7.2 I receive the error 'System....
sircrisp's user avatar
  • 1,027
0 votes
0 answers
31 views

How can I use wcf service in grpc in ASP.NET Core?

I have WCF service with .NET Framework and I have a gRPC with ASP.NET Core 6. I got this error when I call the WCF service in my grpc service: unexpected HTTP status code received from server: 500 (...
Soheil's user avatar
  • 190
0 votes
2 answers
51 views

CoreWCF vs Classic WCF windows authentication failure

I have this scenario: Microsoft Dynamics AX WCF service running in two different environments: production and test; in production the service has two instances, balanced with DNS, in test only one ...
Andrea Colleoni's user avatar
0 votes
0 answers
22 views

WCF service occasionally hangs on synchronous calls despite the quick response from the service

I am working with a complex WCF service/client application, where both the service and client perform various tasks. Providing a code sample might not be useful in this context. I have encountered an ...
Jebik's user avatar
  • 768
0 votes
0 answers
22 views

Can a Wcf Channel Factory be used in concurrent operations?

I have a legacy c# code that is creating a new WCF channel factory for every call. I am intending to reuse the channel factory but I have a concern about whether the same IRequestChannel object be ...
Arun Prakash Nagendran's user avatar
0 votes
0 answers
28 views

WCF client unable to reflect type or serialize interface

We are writing a .NET 6 client for a SOAP web service that appears to be implemented with MS: .svc or .asmx. Adding the service reference successfully creates the proxy class. Invoking it returns the ...
BruceCode's user avatar
0 votes
0 answers
42 views

WCF service not allowing traffic via net.tcp protocol

I have a WCF service hosted on IIS. It has https and net.tcp bindings enabled. The https binding works fine but net.tcp gives below error: "The message could not be dispatched because the service ...
aprajitapriya's user avatar
0 votes
1 answer
42 views

WCF Rest Token based authentication - provide a full sample

It would be nice to have a full example for the solution which was descripe in second answer of text. With the complete web.config and how can I access to the values of the jwt in the implemented wcf ...
Ingo's user avatar
  • 1
0 votes
1 answer
49 views

WCF Successful response always returns NULL

I have a WCF service endpoint in my C# application. The response from service is always null for successful response. If I pass an invalid parameter the error from service is correct which implies ...
Vishal G's user avatar
0 votes
0 answers
29 views

.NET 6.0 proxy classes from WSDL

I'm developing an ASP.NET Core 6.0 web app which uses, among other things, web services defined in WSDLs. Those services are reliable and used by other applications including my own .NET Framework ...
Peter's user avatar
  • 47
0 votes
1 answer
37 views

Windows Authentication WCF Service

I have a WCF Service hosted in IIS, that must use https. I am wanting to use the current user making a call to the service to be used to authenticate. I have setup my bindings like this on the service:...
John's user avatar
  • 253
0 votes
0 answers
25 views

Change WCF endpoint based on the selected environment (TEST/UAT/PROD)

I've found a number of ways to change an endpoint at runtime, but nothing exactly matches what I'm trying to do. I have a number of defined endpoints for various WCF services in a WinForms .NET 4.8 ...
BrianW's user avatar
  • 37
-1 votes
1 answer
36 views

c#error cs0029 for service reference soap

Hello I add a service soap in c# and I instantiated a class of the service. Now I find myself in a situation where I need to add data into the service. The main class this: public partial class Pippo: ...
gggpp's user avatar
  • 1
0 votes
1 answer
33 views

Web.config Authorization - Allow Security Group

I have the following in my Web.config file, however this does not seem to work with an AD group. <authorization> <allow users="Domain\sg-name" /> <deny users=&...
John's user avatar
  • 253
0 votes
0 answers
18 views

Load balanced WCF call to another WCF fails with 401.2 when same server is called

We have many WCF services on servers that are load balanced. Lets say: Balancer.domain.com server1.domain.com (2012R2) server2.domain.com (2012R2) WCF1 references WCF2. There is no prob with calling ...
Vladimír Hála's user avatar
0 votes
1 answer
37 views

Unable to Update or Add WCF Service Reference when HttpsGetEnabled is set to false

I have created a WCF service. Initially I was able to add or update service reference with my local URL https://localhost:44390/MyService.svc. but as soon as I changed the value of HttpsGetEnabled to ...
Asif Ali's user avatar
  • 123
0 votes
0 answers
64 views

Execution of an exe consuming WCF Service is failing inside windows docker container

I have a console application written in .NET framework 4.8. It consumes a .NET WCF web service with the help of a proxy at a given port 18793 which is hosted on the local machine as a console host ...
hi_shobhit76's user avatar
0 votes
1 answer
73 views

Migrating WCF service to CoreWCF, Client couldn't communicate with Hosted Service

I'm working on migrating WCF services to CoreWCF. In the service side I can able to host the service by using WebApplicationBuilder (Microsoft.AspNetCore.Builder). But the client side when I'm trying ...
M.Dineshkumar's user avatar
0 votes
0 answers
28 views

Problem with getting data from a SQL table with foreign keys in a WCF project in Visual Studio

I have a problem with my WCF project in Visual Studio. I have connected a SQL database with ADO.NET Entity Data Model to the project. So far everything works. For example when I want to get data from ...
joschlie's user avatar
0 votes
0 answers
33 views

Hi, I'm trying to consume a web services and I get the error "No Security header in message but required by policy."

Could someone tell me what I should add to the call? This is the WSDL: https://preproduccio.ejcat.justicia.gencat.cat/cee/TTA/TTAImport?wsdl and this is my code: try { // la url ...
Angel-ito's user avatar
-1 votes
2 answers
106 views

How do I implement retries for WCF clients?

I have a C# client implementing System.ServiceModel.ClientBase<TChannel> for communication with a SOAP API. I want the client to automatically retry requests when timeouts occur. I figure I ...
br3nt's user avatar
  • 8,947
0 votes
2 answers
38 views

WCF Two Way authentication with certificates issue

To test if one way or two way authentication is happening on the client side i've deleted the servers certificate from trusted people, and the communication is still happening with no issue, so only ...
bogdan.vilimonovic's user avatar
0 votes
1 answer
21 views

How to manipulate the result of a wcf soap/xml service result

I used WCF to generate classes for sending a request to a soap/xml service. I logged the outbound message and it looks right. I used Fiddler to examine the result. I cannot figure out how to ...
bob alston's user avatar
0 votes
1 answer
20 views

Add authentication header to DiscoveryClientProtocol.DiscoverAny() request

I am updating an older tool that we have been using for over 10 years that is similar to SoapUI, but C# based. The original code is using this function to connect to a WCF web service and download ...
Chris Parish's user avatar
0 votes
0 answers
54 views

Call WCF service with client cert from SOAPUI or Postman

I have a wcf service which uses client cert authentication. I am able to call this service using c# code and getting the certificate from the cert store as below. Client.ClientCredentials....
Aravind Medida's user avatar

1
2 3 4 5
1017