Most voted "wcf" questions
Windows Communication Foundation is a framework for building service-oriented applications (SOA).
Learn more…107 questions
Sort by count of
-
11
votes1
answer1173
viewsWhat is the difference between WCF and a Web Services?
I’ve always worked with Web Services, but lately I’ve seen a lot if you talk about WCF, hence my doubt. What’s the difference between WCF and a Web Services? Is there some improvement between one…
-
7
votes1
answer2836
viewsDifferences about WCF, Webservice and Webapi with Asp.net?
I will create a service to make my company’s data available to a client. But I am evaluating the creation of the services and I came across this technical doubt. I know there are differences between…
-
6
votes1
answer674
viewsHow to define the culture in a WCF Webservice?
I have a plea WCF rotating in the IIS where the server language/culture is all defined in English. There is no possibility for me to change the server settings so that I could change the culture or…
-
6
votes1
answer720
viewsSOAP WCF request in PHP
I am trying to consume a web service from a shipping company. However, PHP is not mounting the request correctly. Request in PHP: <?php $client = new…
-
6
votes1
answer561
viewsProblems Xamarin Asynchronous method
In the event of a button of my APP had the following code it worked running on the android emulator, but when I passed the app to the mobile generates a message the app stopped. Button…
c# wcf xamarin asynchronous xamarin-studioasked 8 years, 11 months ago Diego Filipe Pedro Santos 531 -
5
votes1
answer197
viewsFire Asynctask class exception
The class below is responsible for obtaining data from a WCF Rest service: public class MyAsyncTaskGeneric<T> extends AsyncTask<String, Void, T>{ private final Class<T>…
-
4
votes3
answers986
viewsWCF consuming external Java Webservice with HTTPS and proxy
I have a WCF service that consumes a web service (developed in Java) where I need to connect with HTTPS using a certificate. So far everything works well, however, in production environment my…
-
4
votes1
answer178
viewsDelay in the first call WCF service
I am developing an application using WCF to distribute, everything is working smoothly, but there is a strange thing, whenever I use the service the first time it takes a lot,(almost a minute for a…
-
4
votes2
answers4228
viewsAuthentication in Restful Service
In the example below, I need to pass a login pair/password, because the REST service requires authentication (Basic Authentication). So how should I pass this information in the section below?…
-
4
votes1
answer5523
viewsProblems returning a large amount of data through WCF
Good Afternoon, I have a web service done in WCF, when I do a query in the bank and return a large amount of records it gives me the following error: An unhandled Exception of type…
-
4
votes2
answers5600
viewsThe underlying connection was closed: Unexpected error on a receipt
I have a web site that communicates with a WCF. This Wcf communicates with my "DAO" which is a Library class where I have the.edmx model for access to the bank. I referenced my DAO on WCF, and my…
-
4
votes1
answer785
viewsError when trying to connect to SQL Server from webservice on IIS 7.5
I am getting some errors when trying to perform a query in SQL Server from a Webservice hosted on an IIS 7.5 server. My connectionString on the web.config: <connectionStrings> <remove…
-
4
votes1
answer205
viewsWCF Receive Reply in UTF-8
I’m consuming a Webservice by means of a Console application. I receive an object as a return and in this object I need to read an attribute called ReturnMessage. But the text is disfigured, the…
-
4
votes2
answers2246
viewsHow to print from a web application to a local printer with C#
I need to program in web some resources that perform local impression, where text and commands are sent to a specific device without the user interaction. For example the issuance of labels on Zebra…
c# web-service webforms wcf impressionasked 7 years, 2 months ago Desenvolvimento Sistema Gestor 59 -
4
votes1
answer2112
viewsCommunicationexception: Error in client making HTTP (HTTP.SYS) request to third party Webservice
I’m developing for the eSocial for more than a year now, and, I am finding the following error in some customers, when trying to send to the service: System.ServiceModel.Communicationexception:…
-
3
votes3
answers553
viewsWhat is the difference between a web service in the same project and a different project in the same project?
Everyone tells me to create a REST and not SOAP. I know I’ll only get it well doing. I picked up an old project at the company where I’m with a web service in the same project. As I’m using MVC, I…
-
3
votes1
answer537
viewsHow not to serialize some attributes in Restful calls (C# + WCF + JSON)?
In the example below, how to do not serialize an attribute. I believe I’m looking for the equivalent of java syntax: For classes: @Jsonignoreproperties(ignoreUnknown = true); For attributes:…
-
3
votes3
answers1909
viewsTry/catch does not show correct message
Guys, I have a C# code that has the code: Uri resultadoURL; bool resultado = Uri.TryCreate(Configuracoes.Configuracao.URL, UriKind.Absolute, out resultadoURL) && resultadoURL.Scheme ==…
-
3
votes1
answer203
viewsCompetition Server ASP.NET
I have a Silverlight application, which accesses a service in WCF. In this application I have a method Salvarnotafiscal(). This method calls a method Validarnotafiscal that verifies if there is…
-
3
votes1
answer973
viewsError to leave application authenticated by Windows
I’m trying to leave an application authenticated by Windows. But when I change the settings on IIS with anonymous authentication disabled as per the image below: I have the following mistake:…
-
2
votes3
answers601
viewsRemove: from xml generated by my web service
When I use XML in a Rest web service, it appears like this: <getCnpjParceiroResponse xmlns="http://tempuri.org/"> <getCnpjParceiroResult…
-
2
votes1
answer383
viewsSerialization - Webapi for WCF with base type property (Abstract)
I have a problem here where I have a Webapi consuming a WCF. I’m basically having trouble getting into WCF a property that’s the base type of class I’m actually sending. I’ll set an example to make…
-
2
votes1
answer3034
viewsIIS - Access denied directory
I am using windows server 2008 and IIS 6.1, I have a service that needs to access files in a certain directory, but I do not have access. What I need to configure to get access? After adding…
-
2
votes1
answer468
viewsLeft Join in LINQ
I have the representation of 2 classes. first class: using System; using System.Runtime.Serialization; namespace WebService { [DataContract] public class PessoaDados { private Nullable<int>…
-
2
votes0
answers138
viewsProblem with service reference (wcf) in Visual Studio 2015
I am using VS2015 (framework 4.6) in a Solution with two projects, one project is wcf (running on IIS) and the other project is a web application. I added my service (wcf) to my web application…
-
2
votes1
answer1139
viewsWeb API - Token
A MVC application accesses WEB API services. To access the WEB API it is necessary to inform a "token". In the WEB API application there is a button that generates the token. How to make the WEB API…
-
2
votes1
answer113
viewsWCF out bool parameter
I created a Webservice WCF, and at the interface IService1.cs I put the signature of the methods [ServiceContract] public interface IService1 { [OperationContract] bool insertConsulta(BConsulta…
-
2
votes0
answers49
viewsIs it normal to pass null variables from the client side to the service side?
My goal is to create three applications: in WCF, in ASP.NEW Web API and another in WPF. My question is this:: It is normal, the data that we initialize on the client side namely (WPF) and that we…
-
2
votes2
answers965
viewsWCF ERROR: Failed to add a service. Service Metadata may not be accessible. Make sure your service is running and exposing Metadata
Well, this error is happening, after I did the procedure to access the IIS Remotely. Error: Cannot obtain Metadata from http://localhost:xxxx/Service.svc. If this is a Windows (R) Communication…
-
2
votes1
answer45
viewsWCF as Windows Service
I’m creating a WCF, and it’s like this: ServiceHost host = new WebServiceHost(typeof(Server)); WebHttpBinding binding = new WebHttpBinding(); binding.MaxReceivedMessageSize = 999999999;…
-
2
votes1
answer277
viewsWCF error starting as Windows service
I am trying to start a WCF as Windows service, but it returns me the following error: HTTP could not register the URL http://+:80/. Your process has no access rights to this namespace (see website…
-
1
votes1
answer110
viewsWCF Restful Https for a Single Method
I have a WCF Restful that I am using for a mobile application, I need a single method, the payment, use HTTPS, I do not want to enable HTTPS for the entire service because some methods return a…
-
1
votes2
answers529
viewsI rotate in my browser Webservice and gives me a strange message
While giving a View In Browser on my Webservice, brought me this message. It doesn’t look like a message that Webservice is all ok. What is this message? Service This is a Windows© Communication…
-
1
votes1
answer221
viewsError posting my Webservice
When I run my Webservice and publish on IIS(7) the following error occurs: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base…
-
1
votes1
answer136
viewshost wcf on IIS without domain
Do I need a registered domain to be able to consume a WCF on an IIS server? Can’t just use the server IP?
-
1
votes1
answer153
viewsAccess denied when using MS Syncframework
I’m trying to implement a system where I need to have a local database (SQL Compact) and a cloud database (MSSQL) that can be synchronized. The shape I found that I’m following is the one specified…
-
1
votes1
answer138
viewsIdentify WCF Service client (intranet or internet)
I wonder if it is possible to identify the call if a WCF Service on the server, if it was called by a client inside the network (intranet) or outside the network (internet). I am implementing a data…
-
1
votes2
answers189
viewsByte Array x Stream
I’m developing a WCF service that will convert files. I will upload and then download the files. The files are not large. What is preferable in the case of sending and receiving, returning an array…
-
1
votes1
answer212
viewsWCF and Summer Time
I have a date conversion problem in WCF. I get a Json a Datetime in Unix format "\/Date(1477320927000)\/" - 24-10-2016 12:55:27. Wcf receives this date as 24-10-2016 14:55:27. This giving a…
-
1
votes1
answer264
viewsExchange of XML between service and client
I am studying WCF and all the initial material that I find it all comes down to very basic things, exposing methods that receive some parameters and return some value. I need to create a web service…
-
1
votes1
answer652
viewsPublish WCF service on IIS with test environment
I created a webservice using WCF . NET 4.0, and hosted on the IIS of our local server (when everything is ok it will be migrated to a web server). In the winform application I managed to consume the…
-
1
votes1
answer148
viewsWCF Service Reference generates empty file
I’m having trouble referencing WCF services in Visual Studio. It does not generate any reference to the service classes to be referenced, the file Reference.vb is almost empty:…
-
1
votes3
answers6139
viewsAn unhandled Exception of type 'System.Invalidoperationexception' occurred in System.ServiceModel.dll
I’m trying to consume a service but it gives the error: An unhandled Exception of type 'System.Invalidoperationexception' occurred in System.ServiceModel.dll And the message: "Could not locate…
-
1
votes1
answer56
viewsHttputility.Htmldecode(), Html to Txt intention (at least), can anyone help?
I’m getting a record whose content is this below (in HTML): <p style="text-align: justify;"><span style="font-family: times new roman,times;"><span…
-
1
votes1
answer136
viewsWCF service hosting with endpoint creation?
I noticed that when running a Rest type project when opening the interface, opens the internet browser is lists all the contents of the folder, being necessary to select the ".svc" when running the…
-
1
votes0
answers390
viewsReturn Json from an Object List - WCF C# . NET VS 2010
Hello, I want to return a list of objects in json by wcf. When I put to return the string, it returns peacefully. However, when I return the list, the error. The error that shows is an error by…
-
1
votes1
answer59
viewsWCF for consumption in Silverlight application (Windows Phone 8.0)
I’m having trouble adding to Servicereference, it adds normally but when it will generate the class "Client" it finds the following error: No endpoints compatible with Silverlight 3 Were found. The…
-
1
votes1
answer44
viewsChange WCF address in Windows Universal App from development to production environment
I am developing an application in Universal Windows App (for Windows 10, Windows 10 Mobile, etc), which basically this application makes the consumption of data that are in the service running in…
-
1
votes0
answers196
viewsChange name of elements
I would like to clarify some doubts since I do not have much experience with Web-Services and, currently, I have been tasked to review and implement some changes in an already deployed system. For…
-
1
votes1
answer58
viewsProblems with WCF + Mysql
I want to use this method, locally it works and returns what I want, when I command IIS simply returns me on the last screen shows the error: Within the Service1.svc.Cs have this method: public…