Last post Oct 03, 2011 05:55 PM by rsegecin
Sep 29, 2011 07:02 PM|rsegecin|LINK
Hi. I was wondering how to handle binary encoding message in my WCF service. Do I have to create my service normally as if it were consumed by any other kind of encoding message and if that's so what should I write in binary on the message to execute the
service's method that I want to consume?
Thank you very much.
Sep 29, 2011 09:55 PM|PiyushJo|LINK
This is the sample you should take a look -
http://msdn.microsoft.com/en-us/library/aa395198.aspx. You have to implement the service just like any other WCF service and then taking advantage of the WCF extensbility - you need to create a custom binding using binaryMessageEncoding and HttpTransport.
Sep 30, 2011 06:08 PM|rsegecin|LINK
Hi PiyushJo thank you for the reply. I saw the samples and unfortunally there's not an example that shows how to implement binaryMessageEncoding and HttpTransport. I'm really interested to know how to deal with this kind of comunication using a protocol
other than SOAP. I want to comunicate with a hardware that uses his own protocol which I want to implement with WCF.
Oct 01, 2011 04:24 AM|PiyushJo|LINK
I see. It seems you want to do your own custom binary encoding so that you are able to connect to this hardware over http with it. The examples I referred to used WCF's binary encoding. I think you will have to implement a custom mesage encoding channel
which you can then layer over http thereby creating a custom binding and thus be able to talk to this hardware. I am assuming this hardware does not have its cusom transport and still can talk http and you simply need a way to switch the encoding format. We
have custom encoding samples here - http://msdn.microsoft.com/en-us/library/ee960159.aspx. Feel free to shoot me an email at
firstname.lastname@example.org if you have any questions. Thanks.
Oct 03, 2011 05:55 PM|rsegecin|LINK
PiyushJo, it seems that the link you posted to be exactly what I was looking for. It'll take some time to run some tests but when I do I'll leave a comment.