Solved

VC++.NET using Web Services

Posted on 2004-09-28
3
195 Views
Last Modified: 2010-04-24
Dear all,

  I have some program written in VC6, and we convert it to VC++.NET.  Could I call web services using this project (under VC++.NET)?

  I searched the question before, seems that the code I have now is "unmanaged" VC, right? Could you suggest how can I call Web Services from unmanaged VC?

  FYI, I can all from a new object under this project (if this is useful).

  Thanks.

Regs,
Bezier
0
Comment
Question by:bezier98
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
nonubik earned 500 total points
ID: 12168096
It is quite simple. In your unmanaged project choose 'Add web reference..' from 'Project' menu. There insert the webservice URL and click 'Go'. Then click 'Add reference'. A template class derived from CSoapSocketClientT will be added to your project that will contain the webservice fuctions.
0
 
LVL 16

Expert Comment

by:nonubik
ID: 12168111
Being your class name MyWebserviceClassT, to call functions:

MyWebserviceClassT<> myWeb;

HRESULT hr = myWeb.f1(..);
0
 

Author Comment

by:bezier98
ID: 12245299
Thanks, for your help, actually it works, but I have problem see if you can help

Above method works on a .cpp files, and after second check, my source code is in a .c file, although it compiled under VC++ ...

Any suggests for my case? Thanks.

Bezier
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now