如何从VC ++ 5.0调用Web服务 [英] how to call webservice from VC++ 5.0

查看:60
本文介绍了如何从VC ++ 5.0调用Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从C ++ 5.0应用程序调用Web服务并获取返回值.

这可能吗,最好的路线是什么?

我对Web服务具有零经验,并且对使用5.0的局限性有些担心.

请帮忙!在我知道这是正确的路径之前,我不想走太远.非常感谢,

AmVal

I need to call a webservice from a C++ 5.0 application and get the return value.

Is this possible, and what is the best route to go?

I have ZERO experience with webservices, and am a little afraid about the limitations of working in 5.0.

Please Help! I don''t want to start going too far down a path until I know it''s the correct path. Thanks much,

AmVal

推荐答案

您可以从此处开始:
http://msdn.microsoft.com/en-us/library/2k53kft2 (v = vs.80).aspx [ http://weblogs.asp. net/israelio/archive/2006/06/11/How-to-Consume-WebService-via-unmanaged-C_2B002B00_.aspx [ http://en.lmgtfy.com/?q= (call + OR + consume)+ webservice +%22C%2B%2B%22 [
You can start here:
http://msdn.microsoft.com/en-us/library/2k53kft2(v=vs.80).aspx[^].

You can find this discussion useful:
http://weblogs.asp.net/israelio/archive/2006/06/11/How-to-Consume-WebService-via-unmanaged-C_2B002B00_.aspx[^].

You can search more:
http://en.lmgtfy.com/?q=(call+OR+consume)+webservice+%22C%2B%2B%22[^].

If gives over 6 million results.

—SA


尝试使用gSoap进行基于SOAP的Web服务,它非常易于使用...
http://gsoap2.sourceforge.net/ [ ^ ]
Try gSoap for SOAP based web-service, its very easy to use...
http://gsoap2.sourceforge.net/[^]


Web服务只是非常简单的名称.通过TCP/IP发送/接收XML字符串.您最需要的最简单形式就是用于通信的套接字和XML格式程序/解析器. XML格式可以像发送硬编码的XML字符串一样容易.解析可能需要更多的工作.为此使用库是个好主意.
A webservice is just a fancy name for something very simple. Sending/receiving XML strings over TCP/IP. All you really need in its simplest form is a socket for communication and an XML-formatter/parser. The XML-formatting can be as easy as sending a hard coded XML-string. Parsing might require a bit more work. Using libraries for this is a good idea.


这篇关于如何从VC ++ 5.0调用Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆