By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,486 Members | 1,024 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,486 IT Pros & Developers. It's quick & easy.

Accessing webservices from VC++

P: n/a
We have a client/server application that is written in VC++/MFC. We are
trying to integrate with a 3rd party product that exposes its data through a
web service. I am trying to figure out the best way to approach this. It
seems like .NET provides the greatest support for accessing web services but
I am not sure of the work involved in writing a .NET DLL to do this that Io
can easily then call from my C++ code. i have been reading up on the Soap
Toolkit but it looks like Microsoft has pulled its mainstream support on it
due to .NET support.

Our application needs to pass data to the webservice (e.g., to add a new
patient to their database) as well as request data from the service (an
"array" of data for clinical observations made on a a patient within a
certain date range).

I would appreciate any insight to how best approach this or examples/samples
of how this can be done. I have not done much work recently in the web space
and alot of this is new to me. i have written C#.net code for the PocketPC
so I am familiar with some of the framework already.

Regards,

-Rob
Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

looking at your description i see a few options, but i don't know all
the requirements so feel free to ignore any one of those if it doesn't
fit with your timeline, project or thoughts!

Option 1:
- Take the VC++/MFC and move it to C++-CLI/WinForms.
Requires a reimplementation of the VC++/MFC part for upgrading to
the new CLR C++ standards. WS support is now default available.

Option 2:
- Write a entrypoint DLL in C++/CLI and link with your existing
VC++/MFC program.
Requires extensive knowlege about "calling conventions" and
"CLR/Native Win32 boundary crossing". WS support is availble in the
..Net DLL (1 abstraction layer)

Option 3:
- Write a COM (interop) exposed .Net type in the .Net language of
choice which exposes the WS functionality through a COM interface.
WS support is available in the .Net COM exposed object (2 abstraction
layers)

I think;
Option 1 is the cleanest, but most expensive.
Option 2 is the 'most straight forward & performing' version, but
requires expert knowlege.
Option 3 is the 'easiest development'. You can continue using COM
objects (which is probably very familiair to you). The negative side
being the performance (crossing the boundaries).

Hope this helps,

Marvin Smit.
On Thu, 8 Sep 2005 08:19:01 -0700, "Rob C"
<Ro**@discussions.microsoft.com> wrote:
We have a client/server application that is written in VC++/MFC. We are
trying to integrate with a 3rd party product that exposes its data through a
web service. I am trying to figure out the best way to approach this. It
seems like .NET provides the greatest support for accessing web services but
I am not sure of the work involved in writing a .NET DLL to do this that Io
can easily then call from my C++ code. i have been reading up on the Soap
Toolkit but it looks like Microsoft has pulled its mainstream support on it
due to .NET support.

Our application needs to pass data to the webservice (e.g., to add a new
patient to their database) as well as request data from the service (an
"array" of data for clinical observations made on a a patient within a
certain date range).

I would appreciate any insight to how best approach this or examples/samples
of how this can be done. I have not done much work recently in the web space
and alot of this is new to me. i have written C#.net code for the PocketPC
so I am familiar with some of the framework already.

Regards,

-Rob


Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.