wcf

WCF net.tcp binding 808:* what does this mean?

爱⌒轻易说出口 提交于 2021-02-07 02:49:17
问题 I am trying to connect to a WCF service someone set up and i'm having trouble, I have no idea what 808:* means in the "Binding Information" for net.tcp site bindings. thanks this is how the bindings are configured in IIS 7 (navigate to IIS, right click on the application hosting the service, click 'edit bindings'). there are two entries: type: http, port: 8000, ip address: *, binding information: (empty) type: net.tcp, port: (empty), ip address: (empty), binding information: 808:* 回答1: I

WCF Client: Forcing Global Namespaces

无人久伴 提交于 2021-02-06 08:43:54
问题 I'm working on interfacing with a SOAP service that appears to not deal with default namespaces, but works fine with global namespaces and namespace prefixes declared at the SOAP envelope level. The problem is that WCF doesn't create these global namespaces at the root, but rather uses explicit unprefixed default namespaces which the service apparently is choking on. Now I know that this not really WCF's fault - I believe the WCF generated messages are valid XML, but the service chokes on it

WCF - The message could not be dispatched because the service at the endpoint address … is unavailable for the protocol of the address

六眼飞鱼酱① 提交于 2021-02-05 20:21:59
问题 Ok, can I vent?? I am so sick and tired of this. I'm working away most of the day and the WCF services are working great. Next time I run my app and make a WCF call, bam! the tcp socket is no longer available. I have searched high and low to solve this and there is no real solution. The only solution I can find is to reboot the machine which is a huge time-waste and burden. Restarting WPA service, net.tcp service, IIS, etc. does not do a thing. Logging off and back on does not fix it. Only a

WCF - The message could not be dispatched because the service at the endpoint address … is unavailable for the protocol of the address

不打扰是莪最后的温柔 提交于 2021-02-05 20:18:53
问题 Ok, can I vent?? I am so sick and tired of this. I'm working away most of the day and the WCF services are working great. Next time I run my app and make a WCF call, bam! the tcp socket is no longer available. I have searched high and low to solve this and there is no real solution. The only solution I can find is to reboot the machine which is a huge time-waste and burden. Restarting WPA service, net.tcp service, IIS, etc. does not do a thing. Logging off and back on does not fix it. Only a

Which layer of the application should contain DTO implementation

徘徊边缘 提交于 2021-02-05 13:11:54
问题 Lately I've been hearing a lot about DTOs and how useful they are but I can't find a good example of using it in ASP.NET context. Let's say I use three tier architecture: Data layer(using Entity Framework) Business Layer(WCF Service) Presentation Layer (MVC 4.0 web application) Where should I convert from the EF Employee object to an EmployeeDTO POCO? Lets say I do the conversion in the Data Access layer but what happens in the WCF service? Should it then be converted to another DataMember

Which layer of the application should contain DTO implementation

我们两清 提交于 2021-02-05 13:11:44
问题 Lately I've been hearing a lot about DTOs and how useful they are but I can't find a good example of using it in ASP.NET context. Let's say I use three tier architecture: Data layer(using Entity Framework) Business Layer(WCF Service) Presentation Layer (MVC 4.0 web application) Where should I convert from the EF Employee object to an EmployeeDTO POCO? Lets say I do the conversion in the Data Access layer but what happens in the WCF service? Should it then be converted to another DataMember

C# Common libraries same location for different WCF services

笑着哭i 提交于 2021-02-05 09:24:32
问题 We are trying to come up with a good solution for sharing common libraries, files, executables. We have use case like below Service1 and Service2 are two WCF services developed and maintained by two separate teams and they follow their own release schedules. Common.dll is provided by separate team and they release as per their own schedule. When Common.dll is released beside each Service team testing it, Common team has additional responsibility to approach every service team and their by

TimeOut exception in WCF while implementing duplex

为君一笑 提交于 2021-02-05 09:14:27
问题 My service contract and callback contracts look like this: [ServiceContract(CallbackContract = typeof(IWebshopCallback))] interface IWebshop { [OperationContract] string GetWebshopName (); [OperationContract] string GetProductInfo (Item i); [OperationContract] List<Item> GetProductList (); [OperationContract] bool BuyProduct (string i); [OperationContract] void ConnectNewClient (); } [ServiceContract] interface IWebshopCallback { [OperationContract] void NewClientConnected (int

WCF Service . Setting response type to XML/JSON using the Accept HTTP Header?

﹥>﹥吖頭↗ 提交于 2021-02-04 21:07:16
问题 I want my WCF service to accept and respond to requests in JSON or XML. I thought that WCF was supposed to automatically interpret the response type based on the Accept header that the client specifies. However in my client request I specify the accept header to be application/json but I receive an XML response. This is my service definition: [OperationContract] [WebInvoke(Method = "POST", UriTemplate = "/GetChecks", BodyStyle = WebMessageBodyStyle.Bare)] Check[] GetChecks(MyCustomObj Object)

WCF Service . Setting response type to XML/JSON using the Accept HTTP Header?

非 Y 不嫁゛ 提交于 2021-02-04 21:06:01
问题 I want my WCF service to accept and respond to requests in JSON or XML. I thought that WCF was supposed to automatically interpret the response type based on the Accept header that the client specifies. However in my client request I specify the accept header to be application/json but I receive an XML response. This is my service definition: [OperationContract] [WebInvoke(Method = "POST", UriTemplate = "/GetChecks", BodyStyle = WebMessageBodyStyle.Bare)] Check[] GetChecks(MyCustomObj Object)