50,662 questions
0
votes
0
answers
253
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
114
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
63
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:
using System.Text;
using CoreWCF;
using CoreWCF.Channels;
using CoreWCF.Configuration;
using ...
1
vote
0
answers
34
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
51
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 xsd.exe and wsdl.exe tools respectively.
These tools generated the ...
0
votes
1
answer
122
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
88
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
38
views
BizTalk SOAP send port -> WCF
I'm trying to change an existing and working SOAP send port to a WCF one, doesn't matter which WCF, whichever one works, I've tried to use the 'Consume WCF Service' wizard by giving it the wsdl of the ...
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 ServiceWeb.svc.cs file, I have this code:
public ...
0
votes
0
answers
62
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:
using System.Diagnostics;
var builder = WebApplication.CreateBuilder();
builder.Services.AddServiceModelServices();
builder.Services.AddServiceModelMetadata();
...
0
votes
0
answers
42
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
39
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
47
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
116
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. The service has multiple environments. ...
0
votes
0
answers
52
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
31
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 referenced when needed.
[...
-1
votes
1
answer
75
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):
[DataContract]
public ...
0
votes
1
answer
81
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
76
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
153
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
206
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
104
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
35
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:
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/...
0
votes
0
answers
38
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
174
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. I have also updated my app....
0
votes
0
answers
156
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 :
public bool HasActifContract(string accountNumber)
{
try
{
...
0
votes
1
answer
40
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
77
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
142
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
0
answers
41
views
The request was aborted: The request was canceled. Intermittent error with code 500 in RoutingService on WCF
In my team, we have an exposed service called AdesfaService, which includes a method named Authorization. This method is used to handle medication consumption authorizations from pharmacies. It is a ...
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
62
views
XML Serializer not creating attributes
I have a simple API
[OperationContract]
[WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Xml, ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Bare, ...
0
votes
0
answers
42
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):
[OperationContract(Name="FooBar")]
[WebInvoke(Method = "POST", UriTemplate = "FooBar")]
Task<...
0
votes
1
answer
191
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
65
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
121
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
53
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
103
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
42
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?
public DataSet SearchName(string LastName, string FirstName, DateTime DateOfBirth)
...
1
vote
0
answers
46
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
136
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 Program.cs looks like this:
internal class Program
{
static ...
0
votes
1
answer
142
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
0
answers
163
views
CoreWCF - The service implementation object was not initialized or is not available
I have built a CoreWCF project that is running and I can access the WSDL from the browser, but when I try to connect to it from my test client console app, I get the error: "The service ...
0
votes
1
answer
178
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
71
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:
var el = XElement.Parse("<wsse:Security xmlns:wsse='http://...
0
votes
0
answers
46
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
55
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 ...