Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VC++.NET using Web Services

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
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…

618 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