Questions tagged [wcf]

23153 questions
1

votes
0

answer
15

Views

Migrate WSE to WCF

using Microsoft.Web.Services2; using Microsoft.Web.Services2.Security; using Microsoft.Web.Services2.Security.Tokens; using Microsoft.Web.Services2.Security.X509; public void ConfigureService(string username, string password, string certKey) { var service = new WebServicesClientProtocol(); service.U...
Medo
-3

votes
1

answer
71

Views

Modification in a WCF application not working

My question is about 'Why is my modification not working?' rather than 'How to create a chat application in WCF?' Here is the entire source code after modification.. I have modified this application so that the GUI and Service-engine could be decoupled. I.e. ChatClient public partial class ChatClie...
user366312
1

votes
1

answer
916

Views

WCF Service WSDL Link with domain name

When i publish my WCF 4.0 service to server, the domain name is always converted to IP value in wsdl address. What i mean is; i want the wsdl link to be http://www.mydomainaddress/svc/service1.svc?wsdl, instead of http://myipaddress/svc/service1.svc?wsdl
SteppenWolf
1

votes
3

answer
131

Views

Unexpected fault on ReliableSession in NetTcpBinding (WCF)

I have a client server application. My scenario: .Net Framework 4.6.1 Quad Core i7 machine with hyperthreading enabled Server CPU load from 20 - 70 % Network load < 5% (GBit NIC) 100 users 30 services (some administrative ones, some generic ones per datatype) running and each user is connected to al...
toATwork
4

votes
0

answer
184

Views

No HTTP request occurs when calling WCF Service from Silverlight client

While debugging an issue with an old Silverlight application, I narrowed down the problem to a particular WCF service call, which looks something like: _serviceClient.UpdateFooAsync(fooDto); This code hasn't been changed in years, and it has largely worked as expected. With one specific entity, howe...
Patrick
1

votes
1

answer
1.2k

Views

Java client has trouble to read big responses from wcf rest service

I am trying to consume a rest WCF service using java client on android 2.1. It works perfectly on small responses. When i tried to push a little further by getting 1000+ char response reader.read(buffer) failed to read all the characters. This caused the last line of the script to return: JsonExcept...
taminov
0

votes
0

answer
3

Views

Get TLS-Unique from SSL stream and process HTTP

After long investigation I still didn't find way to get TLS-unique value (https://tools.ietf.org/html/rfc5929) from SSL connection stream using WCF (whole communication using HTTPS protocol though). We are not strictly tied to WCF, so I know there is a TcpListener that allows that via SslStream cla...
irium
1

votes
0

answer
135

Views

How to prevent WCF service from wrapping CDATA in response?

I have created WCF method which return C# object as response. Now the problem is that while I am posting request to this method using chrome postman I am getting JSON response and some of parameters are wrapped with CDATA. For example, One of parameter URL has value like 'http://www.examplewebsite.c...
Sanjay Parmar
1

votes
0

answer
34

Views

Angular JS Code Produce Unexpected Error

In my script code i a trying to post multi request . With this post request i sending data to server to check the validation . but the problem is its showing error , Expected on several lines and comments on that line where the error is showing .. here is my code . ///// var app = angular.module(...
Mohammad
1

votes
0

answer
35

Views

Wcf Service Returns Error For NetTcp Binding

I am trying to define two endpoint one for REST and another is for supporting net tcp binding .I turn on the windows features to support non http and added the net tcp binding in default site in IIS. But the problem is when i run the service i got following error .. Could not find a base address tha...
Mohammad
1

votes
0

answer
208

Views

Method-name included in SOAP-body WCF web Service

I have following class for the WCF web method [ServiceContract] public interface IWebHook { [OperationContract] SystemHealthCheckResponse SystemHealthCheck(SystemHealthCheckRequest request); } public class WebHookService : IWebHook { public SystemHealthCheckResponse SystemHealthCheck(SystemHealthCh...
Asim Sajjad
1

votes
1

answer
191

Views

Changing wsdl:part name

Is there any way of changing the name of a message part in the WSDL? I have this on my WSDL: I'm using a MessageContractAttribute and I can actually change the name using the respetive name attribute on the MessageBodyMemberAttribute, but it also changes the element name and that's not what I intend...
Random1
1

votes
1

answer
108

Views

SOAP - WCF: OperationContract not receiving input parameters

I am building a new SOAP API in WCF to replace old service in an already established communication with client server. The catches here are: I am not allowed to edit the client side Current API (the one I am replacing) is very old and generates everything in wsdl file, not singleWsdl and wsdl I mana...
lukas10m
1

votes
0

answer
194

Views

WCF Service with a thid-party DLL: “BadImageFormatException” or “PInvoke unbalanced stack” exception

I am trying to use DinkToPDF in a WCF service to generate a PDF file from HTML. This library is a wrapper for the wkhtmltopdf library. This requires having the 32 bit or 64 bit .dll for wkhtmltopdf in the solution root folder. When the DinkToPDF 'BasicConverter.Convert()' method is called, I get th...
S-Vuk
1

votes
0

answer
29

Views

ASP.NET Soap Webservice Implicit “Out” Parameters

I'm in the process of modernizing one of my company's older websites. As a part of this process, I need to change a few calls to the webservices we host. I'm a bit new to WCF programming, and I understand that there is an 'old way' and a 'new way' of working with these services. The old version of...
Ryan Brothers
1

votes
1

answer
120

Views

Unable to capture fault exception in client WCF app

I'm consuming a web service made in java using WCF and I'm unable to capture a fault exception. Everytime I send soap request to service I also receive a regular exception says: An unsecured error or incorrectly secured fault was received from the other party. See the inner fault exception for the...
Paweł
1

votes
1

answer
592

Views

Cannot add WCF Service to Project Visual Studio 2017

I've created an empty ASP .NET Web Application and added an ADO .NET Entity Data Model which, at a later moment, I'd like to access via a WPF client. However whenever I'm trying to add an WCF Service to my project im greeted with the error: object reference not set to an instance of an object. Does...
M. Hager
1

votes
0

answer
64

Views

WCF : POST request refused (error 405) while GET is working

I am trying to make POST/GET services using WCF. Where as I encounter no problem for GET, my POST service always gets error 405. I search on so many post but haven't found something to make it work. I just don't know what to try now. Here is my contract : using System; using System.Collections.Gener...
Al Batar
1

votes
0

answer
22

Views

Default HelloWorldResult on ASMX and WCF Service

I need implemets a WebService with a specific structure on response, this one: OK OK Success! 123456 Ok! It's fine. I created an ASMX (Visual Studio) service and the response of my WebService is: **** OK OK Success! 123456 **** I created the same WebService in WCF(Visual Studio) format and I have th...
Roque Santos
1

votes
1

answer
50

Views

Passing JSON to WCF via Ajax Call

I've scoured the web for clarification for how to properly send JSON string to a WCF service. My application has a dozen GET's, and they all work perfectly, but I cannot get the POST to get through to the debugger. I have boiled in down to the simplest JSON string, and I still get a 400 error in t...
Spades
1

votes
0

answer
164

Views

Using authentication proxy in wcf services not working

I have a WCF Client which has several services, most of them use a CustomBinding and one of the services uses BasicHttpBinding. I have been trying to configure my client to pass through a Proxy which requires authentication and uses the NTLM protocol for the last couple of days. I have read countles...
Bow7012
1

votes
2

answer
23

Views

Does WCF(Windows Communication Foundation) have a Micro Web Service feature?And does it only supported by REST?

my question is this: Does WCF(Windows Communication Foundation) have a Micro Web Service feature?And does it only supported by REST?
Furkan Topal
1

votes
0

answer
111

Views

WCF Service Stops responding

IIS 10, Server 2016 Setup, 3 identical VMs, loadbalanced with haproxy service wcf service. Problem: After a short period of time 1 of the 3 servers will stop responding to WCF calls. The method in question returns a simple static string. With WCF tracing enabled I can see when things are working a...
Wjdavis5
1

votes
0

answer
254

Views

Exposing HTTP only WCF service behind a HTTPS reverse proxy

We are currently building a company reverse proxy based on ASP.NET Core, with the intent to expose non-public client services to the internet. It should work like this: Browser\App ==HTTPS==> ReverseProxy ==HTTP in VPN Tunnel==> WCF Service Our current issue is that clients are exposing WCF services...
mordack550
1

votes
2

answer
87

Views

C# Updating Database after edited inputs using DataBindings

I'm using WCF Service and Windows Form. My problem is how to code the Update button after editing the text fields. In my windows form, I have this code: ServiceReference1.StockCardServicesClient sList = new ServiceReference1.StockCardServicesClient(); BindingSource StockCardList = new BindingSource(...
Novice
1

votes
0

answer
79

Views

Service Fabric WcfCommunicationListener With IServiceCollection (IOC). .Net core 1

I've been searching for an example using WcfCommunicationListener and IServiceCollection, in the same way that a stateless service Listener makes a call to ConfigureServices so as to setup the Container. I'm stuck with .Net Core 1 for this Anyone any ideas? Thanks in advance
Jeb746966
1

votes
0

answer
188

Views

WCF client call fails after changing endpoint port

We are facing the following problem. What we have: 1) 'Our' ASMX web-services, hosted both on 80 and 8080 ports 2) 'Their' unsupported unknown solution which works with our web-services. That is, it is working as is and almost can not be modified. I don't know how it is implemented. It looks like WW...
IRQ
1

votes
1

answer
115

Views

Decoding querystring values on the server side

I'm running a web service on my server using WCF and .Net 4. The contract type is WebGet. Here is my problem, at one point in time, someone was sending data through the querystring that was URL encoded. So I added HttpUtility.UrlDecode to decode the parameters. I think that fixed my issue at the...
John Roa
1

votes
1

answer
103

Views

WCF deserialization with XmlEnumAttribute

Enum is automatically deserialized by the WCF service. [XmlType(Namespace = 'http://rca.ws.emitere/2010-11/')] public enum Animal { [System.Xml.Serialization.XmlEnumAttribute('Cat name')] Cat, [System.Xml.Serialization.XmlEnumAttribute('Dog name')] Dog } Using XmlElement(Form = XmlSchemaForm.Unquali...
Jarosław Gosławski
1

votes
0

answer
36

Views

New session starts on every request in IIS Express, Hosting environment works fine

Production application losses session values on every request in IIS Express only. This issue occurs after some security update on windows 10.Its a client side Application uses Inproc session with cookie and WCF Service calls. Issue occurs in all updated browsers.Session works fine for lower version...
Sundar
1

votes
1

answer
40

Views

How to pass list to wcf?

I have class contain Data member: [DataContract] public class InventoryTransfer { [DataMember]public List Line { get; set; } } [DataContract] public classInventoryTransferLine { [Data Member(Order = 1)]public string Item Code { get; set; } [Data Member(Order = 2)]public Decimal Quantity { ge...
John
1

votes
1

answer
526

Views

wcf service doesn't work with SOAPUI - create sequence fails

I have build a wcf-service (vb.Net with VisualStudio2017) that works well with a testclient, and wcfstorm. SOAPUI can load the wsdl, but when sending a request, it fails with 'a:ActionNotSupported' My Service uses WsHttpbinding, no authentification, no security, with sessions and reliable messaging....
Thomas
1

votes
0

answer
447

Views

how to call a legacy WCF SOAP from AWS lambda

I am a very amateur coder, I am experimenting with Alexa Skills, I want to be able to use Amazon AWS to pass an XML message not JSON to an existing c# WCF service which expects a formatted XML message and responds with an XML. how do I create a lambda to call a publicy accessible API that is NOT hos...
Kramanite
1

votes
1

answer
40

Views

Google stack Chart not rendered when data is assigned from a variable

I need to develop a stacked chart in Google Charts and I'm new to it. Here is the sample code for generating the chart. function drawChart() { var data = google.visualization.arrayToDataTable(['Label', 'I', { role: 'style' }, 'J', { role: 'style' }, 'K', { role: 'style' }, 'M', { role: 'style' }...
CrazyCoder
1

votes
0

answer
352

Views

SOAP security negotiation failed after windows security update KB4056892

I have a server which runs this WCF service, this service worked perfectly before the new windows security update KB4056892. The client which uses the service cannot verify the certificate, if i remove the certificate security it works perfectly. Also if i remove the windows update it will work as...
JohnDoe62
1

votes
0

answer
106

Views

Using WCF client: “Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.”

I have to call a Web Service, that in the request, has a property like this: [System.Xml.Serialization.XmlElementAttribute('Criteria', typeof(QueryTypeCriteria), Order=2)] [System.Xml.Serialization.XmlElementAttribute('Identification', typeof(BaseComponentType), Order=2)] [System.Xml.Serialization.X...
felixmondelo
1

votes
0

answer
198

Views

WCF - Return .NET Standard library objects

I have a .NET Standard 2.0 library which defines EF entities and Views, and it is referenced by some other .NET Core 2.0 and .NET Framework 4.7.1 projects without problems. But I'm not able to do the same with a WCF 4.7.1 one, using VS 2017, which returns these views. Error: 'Couldn't get dependenci...
SySc0d3r
1

votes
0

answer
120

Views

Windows Authentication in a WCF service hosted in Azure

I have a WCF service hosted in an Azure Web App. I turned on Azure Active Directory. My binding is set up as so: This should cause it to prompt for a user name and password. Instead I get : The authentication schemes configured on the host ('Anonymous') do not allow those configured on the bindin...
Jim Wilcox
1

votes
1

answer
120

Views

WCF service to Windows Service Connectivity using Signalr

I have windows service created on my machine and another WCF service created and hosted. I wanted to know how to communicate WCF service and Windows service using Signalr. The problem is like I don't know how to couple both WCF and windows service together to make the connection tight. The other ha...
Wikum W
1

votes
1

answer
497

Views

WCF configuration validation warning: The 'name' attribute is invalid - The value '<NAME>' is invalid according to its datatype 'serviceNameType'

I have been digging for hours to solve this problem, but have not gotten anywhere. I am attempting to configure a service and everything compiles, but I am getting some warnings and the service cannot be found when attempting to create a reference. The specific messages are: WCF configuration valid...
Anthony Schieffer

View additional questions