473,320 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Accessing webservices from VC++

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
1 2041
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jinashe | last post by:
what do i need to enable accessing of webservices from a clients PC i'm hosting some webservices from my server in VB.NET. i've got some client windows applications done in VB.NET. what have i...
3
by: dbradley | last post by:
Hi, I am trying to access a webservice using VC++.Net. When I try and add a webservice using Project/Add Webservice I get to messages: "No Web References were found on this page" and "the request...
2
by: Daniel Santana | last post by:
Hi, about Java WebServices, accessed by C#, I have two questions: 1) what I have to do, in order to use java webservices? 2) I search and I guess I must type the wsdl path in "add web reference"....
2
by: vemulakiran | last post by:
Hi all, I have doubt regarding .NET. I have a tool which was developed on VC++ 6.0(Win32 Application ). The application communicates with library (API) which was developed on VC++ 6.0 called core...
8
by: Hamed | last post by:
Dear Sir/Madam I should call web sevice from VC.Net, The problem is when i want to create NetworkCredential object. because that's undefined. Please do me a Favore and tell me how can i do...
0
by: Nalla | last post by:
Hi, I have a requirement to call webservices from my old C++ application.So first I tried with Vc++.net as follows.....There are 2 approach Dotnet frame work and soaptoolkit 3.0 I am not able to...
3
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
4
by: Jon | last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a direct connection to the internet, but on two different PCs with internet access via a proxy, I get...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.