wcf

WCF generated proxy throws InvalidOperationException due to multiple types with same name in WSDL

纵饮孤独 提交于 2021-01-27 01:13:55
问题 I'm using Visual Studio 2013 to generate a WCF service proxy from this WSDL file. However, as soon as I try to call the setSalesItemsV3 method, WCF throws an InvalidOperationException from deep in System.Xml.dll . This sample project demonstrates the problem: https://github.com/jennings/WsdlDuplicateNameProblem This is the inner exception: Message: The top XML element 'start' from namespace '' references distinct types WsdlDuplicateName.SalesItemService.hsSimpleDate and System.DateTime. Use

WCF generated proxy throws InvalidOperationException due to multiple types with same name in WSDL

☆樱花仙子☆ 提交于 2021-01-27 01:12:05
问题 I'm using Visual Studio 2013 to generate a WCF service proxy from this WSDL file. However, as soon as I try to call the setSalesItemsV3 method, WCF throws an InvalidOperationException from deep in System.Xml.dll . This sample project demonstrates the problem: https://github.com/jennings/WsdlDuplicateNameProblem This is the inner exception: Message: The top XML element 'start' from namespace '' references distinct types WsdlDuplicateName.SalesItemService.hsSimpleDate and System.DateTime. Use

WCF generated proxy throws InvalidOperationException due to multiple types with same name in WSDL

夙愿已清 提交于 2021-01-27 01:11:40
问题 I'm using Visual Studio 2013 to generate a WCF service proxy from this WSDL file. However, as soon as I try to call the setSalesItemsV3 method, WCF throws an InvalidOperationException from deep in System.Xml.dll . This sample project demonstrates the problem: https://github.com/jennings/WsdlDuplicateNameProblem This is the inner exception: Message: The top XML element 'start' from namespace '' references distinct types WsdlDuplicateName.SalesItemService.hsSimpleDate and System.DateTime. Use

Querying eBay API with WCF

孤者浪人 提交于 2021-01-04 12:28:50
问题 I'm trying to work with the eBay API in my ASP.NET Core 2.0 website. eBay's .NET SDK doesn't work with .NET Core, so I have the service added through WCF. I'm brand new to WCF and I can't get this client to work though. No matter what I try I'm getting this error: Exception thrown: 'System.ServiceModel.FaultException' in System.Private.CoreLib.dll com.ebay.app.pres.service.hosting.WebServiceDisabledException: The web service eBayAPI is not properly configured or not found and is disabled. I'm

Querying eBay API with WCF

萝らか妹 提交于 2021-01-04 12:27:38
问题 I'm trying to work with the eBay API in my ASP.NET Core 2.0 website. eBay's .NET SDK doesn't work with .NET Core, so I have the service added through WCF. I'm brand new to WCF and I can't get this client to work though. No matter what I try I'm getting this error: Exception thrown: 'System.ServiceModel.FaultException' in System.Private.CoreLib.dll com.ebay.app.pres.service.hosting.WebServiceDisabledException: The web service eBayAPI is not properly configured or not found and is disabled. I'm

There Was No Endpoint Listening at http // That Could Accept The Message in WCF

谁说我不能喝 提交于 2021-01-03 10:38:18
问题 I am trying to develop a webservice . In my application I need to connect to my webservice without any referencing, so I use this code: static void Main(string[] args) { BasicHttpBinding binding = new BasicHttpBinding(); EndpointAddress address = new EndpointAddress("http://confdemo.spadsystem.com/WcfServiceLibrary1.Service1.svc"); ChannelFactory<IService1> factory = new ChannelFactory<IService1>(binding, address); IService1 channel = factory.CreateChannel(); Console.WriteLine(channel

There Was No Endpoint Listening at http // That Could Accept The Message in WCF

徘徊边缘 提交于 2021-01-03 10:33:33
问题 I am trying to develop a webservice . In my application I need to connect to my webservice without any referencing, so I use this code: static void Main(string[] args) { BasicHttpBinding binding = new BasicHttpBinding(); EndpointAddress address = new EndpointAddress("http://confdemo.spadsystem.com/WcfServiceLibrary1.Service1.svc"); ChannelFactory<IService1> factory = new ChannelFactory<IService1>(binding, address); IService1 channel = factory.CreateChannel(); Console.WriteLine(channel

WCF Tracing in ASP.NET Core

喜欢而已 提交于 2020-12-30 06:36:36
问题 We used to use WCF over ASP.NET and recently switched to WCF over ASP.NET Core. This was quite hard to implement because ASP.Net Core doesn't support WCF out of the box. For one thing, the whole web.config XML configuration model has been dumped in ASP.NET Core so we cannot configure WCF tracing there. I.e. this document is useless: https://docs.microsoft.com/en-us/dotnet/framework/wcf/diagnostics/tracing/configuring-tracing We had to hack ASP.NET Core by putting a http proxy between WCF and

WCF Tracing in ASP.NET Core

二次信任 提交于 2020-12-30 06:35:09
问题 We used to use WCF over ASP.NET and recently switched to WCF over ASP.NET Core. This was quite hard to implement because ASP.Net Core doesn't support WCF out of the box. For one thing, the whole web.config XML configuration model has been dumped in ASP.NET Core so we cannot configure WCF tracing there. I.e. this document is useless: https://docs.microsoft.com/en-us/dotnet/framework/wcf/diagnostics/tracing/configuring-tracing We had to hack ASP.NET Core by putting a http proxy between WCF and

How and when to dispose my objects?

霸气de小男生 提交于 2020-12-27 03:18:50
问题 In my backend service I use unit of work pattern. I was wondering if I'm missing something related to disposing objects. First, this is the code I have so far, which works. The service just calls a request handler: [GlobalExceptionHandlerBehaviour(typeof(GlobalExceptionHandler))] public class CustomerService : ICustomerService { public void AddCustomer(AddCustomerRequest request) { ObjectFactory.GetInstance<AddCustomerRequestHandler>().Execute(request); } } The request handler looks like: