Questions tagged [wcf]

23146 questions
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
1

votes
1

answer
37

Views

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 connect to clients discovery url and get the metadat...
Developer
1

votes
1

answer
672

Views

Use TLS 1.1 or 1.2 in WCF and DotNet 4.0?

I have a Server service and a Client service using WCF, both built in C# with DotNet version 4.0 and Visual Studio 2010. I created and installed self-signed SLL and CA certificates on the server. So far so good. Everything works ok. The Client is service is able to communicate with the Server servic...
Neil Weicher
1

votes
1

answer
237

Views

WCF service POST method not working

i am getting following error when i call the wcf service using ajax from another project : The server encountered an error processing the request. The exception message is 'The incoming message has an unexpected message format 'Raw'. The expected message formats for the operation are 'Xml', 'Json'....
Christian
1

votes
1

answer
147

Views

BizTalk 2010 : SharePoint REST with claims based authentication

I'm trying to call one of the standard REST (ODATA) services to get data from a list in SharePoint. But I have issues with the claims based authentication. I'm using BizTalk 2010 with the REST starter kit extension. The sendport I'm using is a WCF-Custom with webHttpBinding. The error I get is the f...
Tim D'haeyer
1

votes
0

answer
33

Views

C# Mirror server relational model on client side

Currently we are using a relational model stored in Entity Framework as a basis of our domain model. This model is sent over WCF and then recreated in code on the client side. As an example I take the Student/Class case. class Student { int Id { get; set; } string Name { get; set; } } class Class {...
Nebula
1

votes
1

answer
35

Views

WCF JSON Format - while consuming in Client side getting an error message

Client side Code I have created web application and added service reference to the Client Project I tried creating a client Object like this: Service1Client a = new Service1Client(); but getting an error message : Could not find default endpoint element that references contract 'ServiceReference_...
Swathi
1

votes
0

answer
24

Views

How Can I Attach a Remote Debugger to a .Net 4.5 WCF Service without Blocking Other Incoming Requests?

I'd like to attach a debugger to a WCF service without interrupting incoming requests which are not the one I intend to debug. I thought I could use a conditional break point to only break on specific conditions in the request coming from my machine. I used SoapUI to send the request with the specif...
JohnH

View additional questions