Most voted "wcf" questions
Windows Communication Foundation is a framework for building service-oriented applications (SOA).
Learn more…107 questions
Sort by count of
-
1
votes1
answer672
views -
1
votes1
answer255
views -
1
votes1
answer99
viewsCall WCF with AJAX
I need to make the ajax call on an html page that will trigger a WCF application WCF contract [ServiceContract] public interface IMailingService { [OperationContract] ServiceRetorno<string>…
-
1
votes1
answer179
viewsAJAX request for WCF with POST
How to make an AJAX request for a WCF service using POST? I am getting several errors with OPTIONS and POST methods that comes in the same request. Here is my code: Contract [OperationContract]…
-
1
votes0
answers90
viewsconsume the webservice in WCF with ajax
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <form id="form1"> <div class="jumbotron"> <input type="text"…
-
1
votes1
answer1246
viewsError consuming json using ajax
I have the following return in json: { "ConsultarRegistroPorCodigoResult": { "Codigo": 2, "CodigoSetor": 1, "Login": "ednilson1", "Nome": "Ednilson", "RegistroAtivo": true, "Senha": "123456",…
-
1
votes1
answer22
viewsresult.lenght ajax error with wcf
The following script works in part: <script type="text/javascript"> function ConsUsuario(){ var value = $("#codUser").val(); $.ajax({ type: "GET", url:…
-
1
votes1
answer33
viewsStack-overflow Exception in Servicehost object
I have a simple implementation of webservice. After years of software in use, began to burst exception on the object Servicehost. try { using (this._host = new ServiceHost(_receiver, new…
-
0
votes1
answer110
viewsWhen I run my WCF REST enters the WCF Client Test screen
When I run my WCF REST enters the screen of WCF Client Test. Before it was working. Because this is happening, IE, because enters the screen WCF Client Test?
-
0
votes1
answer948
viewsReturn only filled fields in the web service
I made a REST with WCF. In a method it returns me an object. It turns out that I don’t fill in all the fields of that object and it shows them all in the reply xml. How do I show only the fields…
-
0
votes2
answers608
viewsValue when null does not show the value in xml
I did that: if (lis.DT_TransacaoV == null) pdv.Transacao = "Não Recebido"; else pdv.Transacao = "Recebido"; I have in the object PDV a property called Transacao string type. If it is different from…
-
0
votes1
answer295
viewsDoubt on how to post a method to a web service, hide
What I’m going to ask I don’t know if it’s possible or how to do it. Well, I have a REST that so far is ok. There, they changed a rule here that directly affects the REST API. I have a method that…
-
0
votes2
answers3488
viewsCustomer Facilities, WCF or Web API?
I need to create a web service for data insertion in a database that requires validation to ensure data integrity. I have as a requirement, to facilitate the use of my "clients". Therefore, I must…
-
0
votes2
answers234
viewsA way to unify calls in WCF Service?
Greetings to you all. Currently I have a WCF Service Application running on IIS with many services, to each new service created I need a new update and a new reference on the client side. As I am…
-
0
votes1
answer525
viewsWhat is the difference between the types of WCF projects?
What are the differences between the various types of WCF design: WCF Service Library; WCF Service Application; WCF Workflow Service Application; Syndication Service Library;…
-
0
votes1
answer126
viewsWhat is the difference between a WCF Service and a Duplex Service?
Follow the doubts... 1- What is the difference between a WCF Service and a Duplex Service? 2- When to use a Duplex Service? 3- We can compare it to Signalr?
-
0
votes1
answer368
viewsError while consuming a web service Rest method
I created a method where my partner, besides receiving data from our base, also sends us. Well, this was working well. Then I discovered that a field was missing. I added this field to the interface…
-
0
votes0
answers337
viewsHTTP 404.17 Error - Not Found for a WCF in Windows Server 2008
Hi, I’ve tried most things on the web to resolve this issue, but I keep getting error "HTTP Error 404.17 - Not Found". I’ve been around servicemodelreg -i I’ve circled aspnet_regiis.exe -i I’ve…
-
0
votes1
answer115
viewsEntity Framework and WCF navigational property
I am trying to implement a WCF service that will return a Model that I also use in the Entity Framework. When the model has a property virtual from navigation to association with another model WCF…
-
0
votes0
answers148
viewsService bus configuration
I will try to detail my problem, I have WCF project hosted on IIS with auto start enabled app Fabric enabled option configured but even so the project only starts on Azure’s Relay when accessing the…
-
0
votes1
answer641
views413 request Entity Too large
I have a banknote issuing service that was running normally on a VM on Azure. We migrated to a Google VM and now presents this error when the note has many products: 413 request Entity Too large I…
-
0
votes0
answers357
viewsProject does not open in Visual Studio (load failed)
After opening once the VS2013 in administrator mode, a project in my solution is not open. Solution is from the company where I started to intern and know almost nothing of the code. The error is…
-
0
votes0
answers43
viewsWebservice with generic contract interface
I’m trying to host a Web Service on a Windows service. And when setting up serviceModel in the App.config I’m getting the following error warning from the editor: Webservice is a project of the kind…
-
0
votes1
answer162
viewsWCF + Web API - How to integrate?
I am developing a web api and need to integrate with a third party service that is a WCF. I have the definition of WSDL, integrated in my Solution as a service Ference, but is pointing to a physical…
-
0
votes1
answer84
viewswcf c# error while accessing directory
I’m writing a service WCF using c#. In one of my methods I try to access a directory on the network (any command like directory.Exists() or directory.GetFiles()) and I get the following mistake:…
-
0
votes0
answers45
viewsConsume WCF on localhost on VS2008 (Windows CE)
I am trying to consume a WCF (localhost) in a Windows CE application on VS2008. If I try to do the same thing on VS2010, everything works since it automatically creates the proxy (app.config). When…
-
0
votes1
answer2827
viewsConsume Webservice WSDL
Good afternoon, I am trying to consume a Webservice using ASP.NET, however, after adding its reference and executing the method, the parameters return null, generating Exception. I tried to run…
-
0
votes1
answer195
viewsGet nullable variable Serialized datetime in WCF service responses
I have a WCF service with a variable nullable Datetime in a Datacontract as shown below. Because of business rules this Datamember may not have the Emitdefaultvalue setado to true and the guy has to…
-
0
votes0
answers124
viewsHow to read a DLL with Cordova or Javascript
I’m creating a app that to communicate with my server I need to create a hash variable that depends on the class, function and parameters I am sending. the server validates this information and only…
-
0
votes1
answer52
viewsWCF/Asmx giving timeout but server hardware is whispered
Good night. I have an application that is integrated with over a hundred other applications through webservices, where I use a lot of threads for communication between them. This my application is…
-
0
votes1
answer82
viewsWeb Service WCF XML output
I’m building a web service using WCF. I created the edmx file, made the connection to the database where I am informing the tables, views and procedures that I want to use and my file. svc is like…
-
0
votes0
answers270
viewsWCF Service Host - Service does not register port if it does not run VS as Administrator
Hello, while trying to run a Servicelibrary type Webservice. WCF Service Host gives me the following bad news : Please Try Changing the HTTP port to 8733 or running as Administrator.…
-
0
votes2
answers124
viewsReturn XML string in WCF
I need to send the result of this XML by a WCF method. <?xml version="1.0" encoding="utf-8"?><Siape> <matricula>8707350</matricula> <matricula_inst />…
-
0
votes0
answers110
viewsHow to remove 'Security' SOAP header
I am trying to consume a SOAP 1.2 web service using a WCF client. The problem is, whenever I make a request an exception MessageSecurityException occurs with the following internal message: SOAP…
-
0
votes0
answers76
viewsServer terminating connection when consuming the same service for the second time
I have a problem, consuming the same method of a service for more than once, during the first call the method works normally, but when the same method is called in another part of the code, with the…
-
0
votes1
answer84
viewsajax without query permission
I have a wcf webservice on the link http://food-fast-com.web27.redehost.net/ServiceUsuario.svc/ConsultarRegistroPorCodigo/2, I can consume it without problem in my local iis with ajax: Consulta…
-
0
votes1
answer41
viewsuse WCF service method returns The Caller was not authenticated by the service
I have a project with several WCF services compiled, and accessible by another project on the same machine. Now I’m trying to connect to one of these services from another machine. I put the service…
-
0
votes0
answers37
viewsError calling a service through Serviceclient in C#
I have a part in the project (MVC that connects to BD through web services) of my company that calls WCF services this way: public static ReturnType CallWebMethod<TService, ReturnType>(String…
-
0
votes1
answer128
viewsHow to call a C# service using Angularjs
Good afternoon, so I’m doubting how to call a service in C#, I’ve tried several ways but failed. (function () { 'use strict'; function Service($http, $q) { const url =…
-
0
votes2
answers78
viewsWCF does not connect to Sqlserver when published on IIS
I am using WCF + Sqlserver, when running by Visual Studio works perfectly, when I publish and update on IIS an error occurs: "A network-Related or instance-specific error occurred while establishing…
-
0
votes1
answer72
viewsAlert via jQuery not working as planned
I need a help! I am developing a web project, and in it I call jQuery a WCF SOAP test, very simple, on a button, and returns an Alert with a value. It’s working, but not the way I want it to. In the…
-
0
votes1
answer213
viewsHow to create a WCF (.NET) POST type method that receives a String parameter from the URL and Stream via POST?
I tried to use in my service but I can’t get anything other than this error. Error: ExceptionDetail, provavelmente criado por IncludeExceptionDetailInFaults=true, cujo valor é:…
-
0
votes0
answers47
viewsInsert with composite objects
get this json { "Name": "Teste", "ExpirationDate": "/Date(1515703416000-0200)/", "Program": { "Id": 1 }, "Resource":{ "Id": 1 }, "InsertDate": "/Date(1515703416000-0200)/", "InsertUserId": 8,…
-
0
votes0
answers348
viewsConsume Webservice Nfe GO C# Error 495 Unknown Code
I am getting the following error while trying to consume Nfe GO Webservice Error 90 - Nfestatusservico. The remote server returned an unexpected response: (495) Unknown Code as I am creating a dll I…
-
0
votes0
answers55
views"Undefined object reference for an object instance."
When I instate a class this error occurs. Classe : AnttLogDTO using System; namespace NewsGPS.Contracts.DTO { public class AnttLogDTO { public string jsonEnviado { get; set; } public string…
-
0
votes1
answer310
viewsUsing Itaucripto_.dll within web service (without registering on the server)
I tried to put the COM DLL in the webservice project (using the code below to include it): <Project ...> <ItemGroup> <COMFileReference Include="itaucripto_.dll">…
-
0
votes1
answer114
viewsWcf access via https
I have the following error accessing a https url: O esquema de URI do provedor 'https' é inválido; esperado 'http'.\r\nNome do parâmetro: via My file to <?xml version="1.0" encoding="utf-8" ?>…
-
0
votes1
answer73
viewsWCF services with a number of different methods (endpoints)
I took a project that uses WCF and I’m not getting to solve this mystery. I have two Solutions: Project A and Project B. When he tries to instantiate the OAuthServiceClient within the Project B, it…
-
0
votes0
answers737
viewsWCF Error - Request cancelled: Failed to create secure channel for SSL/TLS
I’m having a problem when it comes to using the HttpWebRequest, the first time I call the method to effect sending an NF-e to Sefaz’s Webservices it performs normally but the second time I try to…
-
0
votes1
answer50
viewsHow to put 'Ws:' only in the first xml node of a WCF service request?
I have a WCF application that has a vehicle.svc service as in figure 1. In the vehicle service.svc has a recording method that receives a vehicle DTO as in figure 2. public class VeiculoDto { public…