How can I use a standalone WCF service with a Compact Framework client?

I was trying to figure out how to use WCF Self Service from a Windows CE device. I have not found any good resources that go through this process on the internet. I've found some good examples for self-hosting and this part seems to work fine, but not sure how to go for consumption on a compact basis.

I have managed to use NetCFSvcUtil.exe in the past, but that doesn't seem to work with self. NetCFSvcutil says:

The connected connection was closed: An unexpected receive error occurred.

Unable to read data from transport connection: An existing connection was forcibly closed by the remote host.

I used Jason Henderson's sample http://www.codeproject.com/KB/WCF/WCFexample.aspx to get started with self hosting and this part works as expected.

Can anyone point me to a sample where a leaner client is used to consume a standalone WCF service? or give a short explanation of how I create plumbing on the side of the compact frame?

For the host application, I am using the WinForm.Net 3.5 project and for the client, the WinForm Compact Framework 3.5 project.

+2


a source to share





All Articles