Questions tagged as 'wcf'

1
answer

WCF Receive UTF-8 Response

I'm consuming a third party Webservice through a Console application . I get an object as a return, and on this object I need to read an attribute called ReturnMessage . However, the text is unconfigured, so it looks like thi...
asked by 25.11.2016 / 12:41
1
answer

Problems returning a large amount of data through WCF

Good afternoon, I have a web service done in WCF, when I make a query in the database and return a large amount of records it gives me the following error: An unhandled exception of type 'System.ServiceModel.CommunicationException' occurr...
asked by 21.01.2016 / 18:20
1
answer

Error while trying to connect to SQL Server from webservice in IIS 7.5

I'm getting some errors when trying to perform a query on SQL Server from a WebService hosted on an IIS 7.5 server. My connectionString in web.config: <connectionStrings> <remove name="LocalSqlServer" /> <add name="TE...
asked by 17.09.2015 / 18:54
3
answers

try / catch does not show correct message

Staff have a my C # code that has the code: Uri resultadoURL; bool resultado = Uri.TryCreate(Configuracoes.Configuracao.URL, UriKind.Absolute, out resultadoURL) && resultadoURL.Scheme == Uri.UriSchemeHttp; if (!resultado) throw ne...
asked by 13.08.2014 / 20:24
3
answers

What is the difference between a web service in the same project and a different project in the same solution?

Everyone tells me to create a REST and not SOAP. I know I'm just going to get it right. I took an old project in the company where I am with a web service in the same project. As I'm using MVC, I created a web service and I came across...
asked by 28.04.2014 / 15:38
1
answer

How can I not serialize some attributes in RESTful (C # + WCF + JSON) calls?

In the example below, how do I not serialize an attribute. I think I'm looking for the equivalent of the java syntax: For classes: @JsonIgnoreProperties (ignoreUnknown = true); For attributes: @JsonIgnore for attribute. public class Some...
asked by 16.09.2014 / 17:01
2
answers

Authentication in RESTFul service

In the example below, I need to pass a login / password pair because the REST service requires Basic Authentication. So how do I pass this information in the following section? (Additional information: authentication must be made encoded in t...
asked by 08.09.2014 / 21:08
1
answer

ASP.NET Server Competition

I have a Silverlight application, which accesses a service in WCF. In this application I have a SaveNoteFiscal () method. This method calls a ValidateNoteFiscal method that checks whether an invoice with the reported number and series alread...
asked by 06.06.2016 / 19:48
2
answers

The underlying connection was closed: Unexpected error on receipt

I have a web site that communicates with a WCF. This Wcf communicates with my "DAO" which is a class library where I have the .edmx template for access to the database. I referred my DAO to WCF, and my WCF to my web site. I'm using entity fra...
asked by 23.10.2014 / 01:07
3
answers

Remove from: xml generated by my web service

When you generate XML in a web service rest, it looks like this: <getCnpjParceiroResponse xmlns="http://tempuri.org/"> <getCnpjParceiroResult xmlns:a="http://schemas.datacontract.org/2004/07/V99SuporteTecnicoContracts"...
asked by 23.05.2014 / 22:38