Hi There
I've been handed an XML Web Service that I am required to use. C# can build a CLIENT (consumer) of this Web service, apparently quite nicely, with the "Add Web Reference" feature. A resulting C# Forms application builds perfectly well
But .... actually, I'm sorry to say this, but I need to build an 'unmanaged' client of this web service. When I "Add Web Reference" in a C++ project, the operation fails. SPROXY errs all over the place. SDL1030 and SDL1000, for example. Hmmm, this is the same exact Web Service that works perfectly under C#
OK. Now, I really, really, truly do need to access this Web Service in a compiled C++ app. There should be nothing theoretically that would prevent this from working, yes
But... let's suppose for a moment that there's no way to get the tools to work successfully
Is there a strategy to expose API's easily from a C# application out to a C++ application
a) I've heard about putting a COM interface on things, but haven't found sample code for C# to expose a COM interface yet. (JrnlPost seems to use .cpp's to implement the COM interface?, yes?
b) Hand coding interfaces through COM sounds horribly time-consuming, anyway. Is there not some decent, efficient way to do this? Any support for DCE RPC? Any support for C# to export classes with C or C++ calling convetions
Wouldn't it be cool if the errors were corrected so a fast, compiled, 'unmanaged' C++ app could use Web Services
Please tell me I'm not really in for a miserable experience just because sproxy.exe is barfing