Accessing a XML Web Service from VC++.Net

Hello,

i hope it is simple! Currently i try to learn VC++.Net. I'm coming from CBuilder 6. I was successful in installing Visual Studio .Net 2.0 an the creation of my first Web Service.
My goal is to access a XML web service from a windows forms application. Therfore i wrote a funcion "MyMethod" that respondes with an XML document.

The problem is now to create a request in an Windows Forms Application, send it to the service an receive the results.

What do i have to do. Can you give me some hints or a sample? May i use some Components? What are the right keys to search the MDSN?

[596 byte] By [DietmarGleu] at [2007-12-16]
# 1
Hi,

There are several ways to create web service provider or client in VS. Net. You can do this in managed and native C++ code. For managed projects, you need to add a web reference, see more information on this here http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxtskAddingRemovingWebReferences.asp. Do not get confused that sample is in VB, same steps work for C++ projects. In native code you can build web service using ATL Server, that allows you also to create Web service provider as ISAPI web module and provides simple classes to access Web services. Take a look on this sample and docs on classes it uses http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample/html/vcsamSecureSOAPSample.asp
Take a look on this walkthrough also, this is probably what you want to eventually achieve in your application, http://msdn.microsoft.com/library/en-us/vcsample/html/vcwlkVisualCApplicationsConsumingData.asp

Hope this helps. Feel free to ask follow up questions.
Nikola
VC++ Team

NikolaDudar at 2007-9-8 > top of Msdn Tech,Visual C++,Visual C++ General...