[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VC++.NET using Web Services

Posted on 2004-09-28
3
Medium Priority
?
210 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Loops Section Overview
Suggested Courses
Course of the Month17 days, 21 hours left to enroll

831 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