Questions tagged as 'wcf'

2
answers

Return only one field from a list in WCF

The method is like this: public List<CivarTransporteService.Model.Cliente> getClientes() { using (CivarTransporteService.Model.CivarTransporteModelContainer context = new Model.CivarTransporteModelContainer()) {...
asked by 21.01.2016 / 03:56
1
answer

c # WCF Error in response of Webservice when consuming with SOAP MTOM of Electronic Billing

I am consuming a Web Service to send a file https://facturaelectronica.dian.gov.co/habilitacion/B2BIntegrationEngine/FacturaElectronica/facturaElectronica.wsdl But in the debug it returns the following exception:    System.ServiceModel.S...
asked by 07.09.2018 / 15:21
2
answers

Error converting to list in WCF

This is my code: My service implementation .svc public List<string> getClientes() { using (var context = new Model.CivarTransporteModelContainer()) { return context.Cliente.Select(x => x.CLN...
asked by 21.01.2016 / 22:14
2
answers

c # Consume web service electronic invoicing

I am something new in this consume webservices , I have to send a file to a web service and receive an answer, my problem is that I could not generate a SOAP Header valid. The web service to consume is this: https://facturaelec...
asked by 25.08.2018 / 02:49
1
answer

Consume WCF service with Ajax

Hello community I have a service WCF that is published on a server X, I need to consume a method of that service through AJAX , the service method receives as parameter an object with two properties, the way in which I'm consuming t...
asked by 06.07.2017 / 18:27
1
answer

Query about fix c #

I am running stored procedures in my project WCF C# . From one of my SP I receive something like this: CeldaId CeldaIndicadorCodigo CeldaIndicadorTipoCodigo Then with the value of Celda Id I call another SP that brings me: Ce...
asked by 25.10.2016 / 15:50
1
answer

Order of the Fields in XML WCF

I rengo a case with a WCF that does not allow me to receive the data correctly when consuming it from an external tool, example (SOAP UI), I have the following DataContract : [DataContract] public class Ticket { [DataMember] publ...
asked by 30.08.2016 / 17:45
1
answer

Does not show the value of an XMl node

I am reading an xml where I need the code of the received message, for this I did in one part of the code this: string responseValue; while (reader.Read()) { if (reader.Name == "ns2:Response") { if ((reader.NodeTy...
asked by 14.11.2018 / 16:46
1
answer

Ignore DataMember depending on a value

I have a service developed with WCF , in this service I call a stored procedure , it returns 4 fields: id , id_visita , fecha , observaciones . It may happen that the field id_visita comes null and this...
asked by 15.11.2016 / 12:55
2
answers

What is the correct way to implement WCF?

I have doubts about the WCF at the time of its implementation that it would be appropriate to create WSDL for each entity that has the exampleServiceService a WSDL in which usually carries the CRUD methods or a single WSDL that is named for exam...
asked by 30.08.2016 / 08:35