wcfserviceclient

WCF, Sending an unknown type to a WCF service

不羁岁月 提交于 2020-01-04 14:16:20
问题 Consider this scenario that two WCF clients connect to one WCF service(server), this service will receive an object from one client and send it to the other one through some operation contract and client callbacks, both clients have the type for this object but we do not want the WCF service(server) to be dependent on this type. The project is much bigger than this, but I wonder if you can send an object with an unknown type to a service and somehow receive it back on the other client. I saw

WCF, Sending an unknown type to a WCF service

て烟熏妆下的殇ゞ 提交于 2020-01-04 14:16:11
问题 Consider this scenario that two WCF clients connect to one WCF service(server), this service will receive an object from one client and send it to the other one through some operation contract and client callbacks, both clients have the type for this object but we do not want the WCF service(server) to be dependent on this type. The project is much bigger than this, but I wonder if you can send an object with an unknown type to a service and somehow receive it back on the other client. I saw

WCF service self hosting with https

断了今生、忘了曾经 提交于 2019-12-23 03:33:13
问题 Currenlty there is a Wcf service hosted as windows service in one of our client side machine, actually currently this is working with normal http call. As we need to use https instead of http, for that we modified app.config but after starting the service the https url not working.Then we tried URL reservation by using netsh http add urlacl url=https://+:18732/Peripheral/ user=Everyone .Then we restared the service again it's not able to access the https url. we are getting the error in the

How to enable reliability for one-way methods?

ぃ、小莉子 提交于 2019-12-10 18:05:06
问题 The What You Need To Know About One-Way Calls, Callbacks, And Events article tells: The fact that the client doesn't care about the result of the invocation does not mean the client doesn't care if the invocation took place at all. In general, you should turn on reliability for your services, even for one-way calls I've tried to find how can I enable reliability, but didn't find anything meaningful. Could you please help me: How to enable reliability? How to check if one-way method reached

Access the current InstanceContext in a WCF UsernamePasswordValidator

自古美人都是妖i 提交于 2019-12-07 12:16:44
问题 I have a WCF service that is using a custom UsernamePasswordValidator. The validator needs to access my entity framework context. I would like to create one ObjectContext for the entire service call and then destroy/dispose it at the end of the call. So I created a singleton static class that provided this functionality, however, what's happening now is that if two service calls happen concurrently, one of the calls disposes the singleton. I either keep a local reference to the ObjectContext,

Access the current InstanceContext in a WCF UsernamePasswordValidator

。_饼干妹妹 提交于 2019-12-05 18:50:46
I have a WCF service that is using a custom UsernamePasswordValidator. The validator needs to access my entity framework context. I would like to create one ObjectContext for the entire service call and then destroy/dispose it at the end of the call. So I created a singleton static class that provided this functionality, however, what's happening now is that if two service calls happen concurrently, one of the calls disposes the singleton. I either keep a local reference to the ObjectContext, in which case the second service to use it sees it as disposed and throws and error, or, I put a