?
Solved

VC++.NET using Web Services

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

777 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