Solved

VC++.NET using Web Services

Posted on 2004-09-28
3
206 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

707 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