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.
50,656 questions
0
votes
0
answers
56
views
AX 2012 exception while adding inventory movement by C# WCF service
When I try to add inventory movement header line I get many exceptions in AX:
The value in field VoucherNumberSequenceTable is invalid
and
Data source InventDim not in query
I try to create a C# ...
1
vote
1
answer
76
views
WCF - Remove wrapper from XML
I have a WCF application. I need to remove this wrapper
<getSystemNameResponse xmlns="">
...
</getSystemNameResponse>
Here is my code:
<...
0
votes
0
answers
295
views
Wcf, problems after recent windows update
in my company we are still using WCF for some small operation.
(we know, is an old technlogy but we need a lot of time to update)
From this night, in a lot of Windows machines, after this Windows ...
3
votes
0
answers
119
views
IIS time-taken shows multi-second latency while ASP.NET webforms → WCF → SQL timings are sub-second (intermittent)
Project flow / tech stack
.NET Framework 4.8
I am using ASP.NET webforms
In the same project, I have an Ajax WCF web service
That web service calls APIs in another .NET Framework WCF project
The WCF ...
0
votes
1
answer
69
views
CoreWCF soap12 authentication
I have an ASP.NET Core web application, which I'm using to host a WCF Core service. This is my Program.cs:
...
1
vote
0
answers
39
views
Ideablade DevForce Classic Persistence Order Issue v3.8.18.0
We have been using Devforce Classic for a number of years now. Recently we have encountered an issue with the persistence order. For context, we have a table in our schema named InvStoreQty that holds ...
0
votes
0
answers
52
views
How can the classes generated from schema and wsdl files be used in other .NET projects?
I am working on a .NET 3.5 framework project with a WCF service. I generated classes from klm.xsd and abc.wsdl files using the <...
0
votes
1
answer
127
views
FileInfo.CreationTime in C# Reset to Year 1600 When Passing from WCF
I'm using WCF and trying to pass an object of class System.IO.FileInfo from server to client. However, the member contents such as CreationTime gets reset to year 1600 in this case. My guess is that ...
1
vote
1
answer
92
views
WCF Service reference must be recreated every time I reopen ASP.NET MVC project — how to fix that?
I have an ASP.NET MVC application that communicates with a WCF service hosted locally. Currently, I consume the WCF service using a Service Reference added via Visual Studio.
The problem is: every ...
0
votes
0
answers
77
views
WCF changing list type to Array, I tried to change in the advanced settings as well but still getting same error which convert List<T> to array []
I have WCF service:
[OperationContract(Name = "GetAllEmployee")]
IList<Employee> GetEmployees(string UserId, string UserPassword);
In ...
0
votes
0
answers
72
views
With .NET 8.0 and WCF Core Client how to send a CDATA string with it being escaped
I'm using WCF Core Client in .NET 8.0 project so its generating the client from WCF service. There is a call that has a string value where the server is expecting a XML data enclosed in CDATA. e.g.
<...
20
votes
1
answer
2k
views
CoreWCF stream continues to be written to after client disconnects
I have a very simple service class:
...
0
votes
0
answers
44
views
WCF communication with ClientCredentials
I have a problem while trying to use a WCF with security.
First of all, I've generated an auto signed certificate and inserted in the root place of a Windows 11 pc.
In that PC, I've used the command &...
0
votes
0
answers
40
views
Accessing a WCF Service without knowing its port
I'm fairly sure this isn't possible but throwing it out there just in case.
I have two apps (C# desktop apps): an app the runs a process and produces results and a "controller" app that ...
0
votes
0
answers
51
views
c# SOAP logging problem : applyclientbehavior not called (net472, net8)
*We are currently seeking to enhance our C# application's diagnostic capabilities through the implementation of comprehensive SOAP logging. During this process, we have encountered a challenge ...
0
votes
0
answers
138
views
Change url value in dotnet-svcutil.params.json file for different environments
I've created a .NET Core 8 AWS lambda that connects to an old WCF C# service on IIS. I have a dotnet-svcutil.params.json file that holds the url to this service. ...
0
votes
0
answers
62
views
An attempt was made to access a socket in a way forbidden by its access permissions when opening WCF Service Host
Hoping someone can give me a clue on this because I'm pretty stuck
A bit of background that may or may not be relevant: I have 2 applications, AC and XV. AC acts as a "controller" for ...
0
votes
1
answer
32
views
Can I reference a MessageContract as a reuse type?
I'm new to working with WCF. I'm currently at the point where I'm implementing the MessageContactAttribute. This class is located in its own separate project and ...
-1
votes
1
answer
77
views
API call with certificate over webservice isn't working
I wrote an API call in a WCF web service that passes a JSON string via POST.
When i did the call over the webservice, i get an error, but when i did the call over a simple little testapp, i did not ...
0
votes
0
answers
60
views
How to deserialize / pass values from proxy service to data class
I'm running through a couple of tutourials on WCF and run into a snag with my own custom classes.
I have the following data class housed within a WCF service (Class Library):
...
0
votes
1
answer
86
views
Is POCO++ capable of port sharing?
The main goal is to introduce a REST API to an existing service written in C++ and POCO seems to be the best match for that.There are other services that need to run on the same machine.
I already ...
1
vote
0
answers
79
views
.NET WCF-Channels: Unable to cast object of type 'generatedProxy_3' to type Service
I have a microservice structure where separate domains are loaded in dynamically by putting the dlls in the server, which hosts them. The communication between these domains is done by WCF-Channel-...
2
votes
1
answer
157
views
Connect a WCF project with Azure SQL using Active Directory Service Principal authentication type returns ClientSecretCredential authentication failed
I am trying to implement an Active Directory Service Principal authentication of my web project in WCF using the Microsoft guide:
https://learn.microsoft.com/en-us/sql/connect/ado-net/sql/azure-active-...
4
votes
1
answer
233
views
Why does default XmlSerializer requires dynamic code generation for deserialization?
I have an inserting story with a not less of an interesting question.
So. I am currently making a tool for my company that parses data received from MEX endpoint of a WCF service. Everything is okay ...
1
vote
0
answers
113
views
DPWS WS-Discovery: ProbeMatch Received in Wireshark but Device Not Showing in File Explorer Network
I am working with WS-Discovery and DPWS (Devices Profile for Web Services) using gsoap library. My goal is to make my device appear in the Network section of Windows File Explorer using WS-Discovery ...
0
votes
0
answers
36
views
Service action header mustunderstand=1
The client gave me a request in XML format and I need to write wcf service for such request.
Request header is:
...
0
votes
0
answers
40
views
Missing wsse:Security in soap message wcf client
I have 2 certificates, one for establishing SSL communication and other to encrypt SOAP messages. I am using WCF Client and the first part seems to be working, I am able to establish SSL connection. ...
1
vote
0
answers
202
views
.NET v4.8: updating the Microsoft.Configuration.ConfigurationBuilders to version 3.0 does not work
I am working on a .NET 4.8 application, I updated the packages Microsoft.Configuration.ConfigurationBuilders (Environment, Json, UserSecrets) from version 2.0 to 3....
0
votes
0
answers
166
views
C# .NET 8.0 WCF client cannot call WCF service. Says Content Type application/soap+xml; charset=utf-8; was not supported by service
I have a .NET 4.6 WCF Client which works perfectly fine.
When I convert WCF to .NET 8.0, it doesn't work. It keeps saying:
C# .NET 8.0 WCF client cannot call WCF service. Content Type application/...
-1
votes
1
answer
86
views
C# wpf application can not make a second call to a wcf service
I have a wcf service published on my windows server.
I have a simple method which makes a simple db query in the service :
...
0
votes
1
answer
45
views
Streaming WCF response
I have a WCF web service which calls a generative model using the OpenAI C# client. I want to stream this response, as it comes in, to the WCF client. My current transfer mode is set to "Streamed&...
0
votes
0
answers
86
views
WcfClient - SSL/TLS secure channel issue
I am using WCF client to send request to a government API. They gave 2 certificates, the one for 2 way authentication and encryption of SOAP messages, and the other for encryption of outgoing SOAP ...
0
votes
0
answers
163
views
Authentication in CoreWCF-Server
I'm currently migrating a .NET 4.8 application which hosts several REST APIs and WCF interfaces to ASP.NET Core (.NET 8). To migrate the WCF interfaces, I'm using CoreWCF.
I can't change the client ...
0
votes
2
answers
1k
views
.net 8.0 and generated WCF service
I want to generate a proxy class for the external wcf service of SAP.
All goes well but the generated code can't be build in VS2022 in a .net8.0 project and also not in .net standaard 2.1 framework.
...
1
vote
1
answer
64
views
XML Serializer not creating attributes
I have a simple API
...
0
votes
0
answers
53
views
How to handle WCF Json deserialization to List<object> then casting that object to different types?
I have a WCF API that looks something like this (anonymized):
...
0
votes
1
answer
218
views
Having trouble implemeting a circular trace file in WCF client
We have a .NET Framework 4.8 WCF client that has tracing enabled.
Problem is that the trace file is over 10GB and counting.
I want to implement a circular trace file microsoft link.
I took file ...
0
votes
1
answer
67
views
How Can I Ensure ASPX Pages Don’t Cache After web.config Updates in ASP.NET Web Forms?
I’m working on a .NET wcf application with ASPX pages. Every time I update the web.config file (such as changing versioning), I want to make sure that none of the pages are cached and are always ...
0
votes
2
answers
129
views
WCF File Upload Limit - Unable to Upload Files Larger Than 4MB
I am working with a WCF service and client on the .NET Framework 4.8, and I am encountering an issue where I can't upload files larger than 4MB. The default size seems to be 4MB, and I need to ...
0
votes
1
answer
60
views
Call WCF service without knowing the contract type
I'm trying to implement health monitoring in WCF. To achieve this, server side, services which will use my custom service host, I'm adding "Ping" operation within existing contract ...
1
vote
0
answers
113
views
Serialization Error While Executing WCF Client Generated from Workday Inventory WSDL in .NET 8
I am encountering an issue while executing a WCF client generated from the Workday Inventory v43.1 WSDL. I used Visual Studio 2022 (dotnet-svcutil Version 2.1.0) with the .NET 8 framework to add the ...
0
votes
1
answer
52
views
Is this use of using an appropriate way to dispose of resources being that a DataSet is returned in a WCF method?
Is this use of using an appropriate way to dispose of resources being that a DataSet is returned in a WCF method?
...
1
vote
0
answers
48
views
How do I add security Headers to my SOAP Service
I'm trying to call a WCF service from a WSDL given to me by the 3rd party which I'm trying to integrate with, they gave me a sample request that my code should generate, it contains wsse:Security ...
0
votes
0
answers
152
views
Basic routing in ASP.NET Core 8.0 WCF service app hosted by IIS isn't working
I have created for testing a simple WCF service using the .NET 8 framework.
Endpoints are defined in a wcf.config file (follows). The ...
0
votes
1
answer
149
views
BizTalk 2020 WCF-Sql Polling Receive Location no Response
I have a BizTalk 2020 CU5 Server. It has an application with a receive location polling a Sql Server database running a simple select.
A copy of the database has been moved to another server, for ...
0
votes
1
answer
226
views
SOAP service - Cannot convert source type [Something[]] to target type [Something]
I am consuming a 3rd party SOAP service into my C# .NET Core console application.
To do so, I added in the service reference, by importing the WSDL
(Add --> Connected Service --> WCF Web Service)...
0
votes
2
answers
73
views
Remove root element from MessageHeader
My problem is that root element is written twice. I would like to delete root element generated by MessageHeader itself:
My code:
...
0
votes
0
answers
52
views
How to sign specific parts of a wcf client soap message?
I have to communicate with a soap service that requires me to sign specific parts of the message. I can configure this in soapUI, as in image below. I need to sign the WSA headers from and to, the ...
0
votes
0
answers
56
views
SAML 2.0 With frontend web app and backend WCF
I have a frontend app (let's call it SP1) and backend app (WCF service, let's call it SP2), IdP would be ADFS 4.0 (Microsoft Entra Id Federated). I believe I can use WCF security Message and ...
0
votes
1
answer
135
views
WCF on .NET 4.8 doesn't add wsse security headers
I need to add the following WSE soap header to a request to an external web service.
...