如何使用 C++ 与 asmx 服务对话
我有一个现有的 asmx Web 服务,我需要从本机 C++ 实现访问(不,它不能是 c# )。我的选择是什么(这里是 Visual Studio 用户)来尽快完成此操作(任何与 add aweb 引用等效的东西都会很可爱) 谢谢
I have an existing asmx Web Service I need to acces from a native C++ implementation ( no it cant be c# ). What are my choices ( Visual Studio User here ) to do this as fast as possible ( anything that does the add aweb reference equivalent would be lovely )
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我用于此类事情的一个很棒的工具是 gsoap。
One great tool I used for this kind of thing is gsoap.
对于使用本机 C++ 执行 Web 服务,您可能需要查看第三方工具。可能有一些 Microsoft 的东西可用,但在 Soap Toolkit 之后,我再也不想打扰 MS 提供的本机代码库了。
gSoap 是 C++ 的第三方 Web 服务库,在大多数情况下可以免费使用。如果确实需要商业许可的话,我相信大约是100美元左右,而且只有开发者需要支付一次。我在 Windows 和 Linux 上都大量使用过它,而且它的质量始终如一。我在 WS-Security 插件中遇到了一次错误,向维护者提交了修复程序,他在一两天内接受了它。
学习它的学习时间大约是一两天。
For native C++ to do web services, you'll probably need to look at third party tools. There may be some Microsoft things available, but after Soap Toolkit I never wanted to bother with MS provided native code libraries again.
gSoap is a third party web service library for C++, and is free to use in most cases. If you do need the commercial license, I believe it is around $100, and only the developer needs to pay it one time. I've used it fairly heavily on both Windows and Linux, and it has always been consistently high quality. I encountered a bug once in the WS-Security plugin, submitted a fix to the maintainer, and he accepted it within a day or two.
The ramp-up time is roughly a day or two to learn it.