Reputation: 6327
I am working with a native C client application (not built with Visual Studio) that needs to call a WCF service. I am creating the WCF service, so I have complete control of it.
Most of the information I have found deal with calling WCF from unmanaged C++ clients.
Has anyone tried WWSAPI?
I am hoping to get some direction on whether this is even possible and what technologies can be used. Any help would be greatly appreciated!
Upvotes: 4
Views: 1944
Reputation: 138776
WCF is very powerful and configurable and allows to use many different bindings (HTTP, Sockets, MSMQ, custom, etc.). Starting from version 3.5 I belive, you can use a JSON/REST bindings and contracts. Here is an official link about this: Overview of REST in WCF, and some samples here: WCF 4 JSON REST Service and here: REST Service with WCF and JSON.
Now, why REST and JSON? because these prococols are very lightweight and do not need huge dependencies or libraries. That was in fact the whole point of REST, as opposed to SOAP.
So, with these, you only need a TCP/HTTP stack and a JSON parser on the client-side wich makes it relatively easy to program in C. Here is a link to a simple JSON library: Jansson
Upvotes: 2
Reputation: 7470
you can use gSOAP is a technology that allows you to create stubs for client and server side code from WSDLs. Here is step by step tuttorial and that one for windows
Upvotes: 3