如何通过MFC使用ASP .NET Web服务(HTTPS) [英] How to consume an ASP .NET Web Service(HTTPS) through MFC

查看:109
本文介绍了如何通过MFC使用ASP .NET Web服务(HTTPS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我写了一个MFC应用程序,其中应用程序使用ASP .NET Web服务。



1.通过Visual Studio添加Web引用添加Web引用。

2. localhost的对象用于调用Web服务API。



此应用程序正常工作。





但是只要我为Web服务启用SSL设置客户端MFC应用程序无法处理/调用Web服务。尽管仍可通过HTTPS通过Web浏览器访问Web服务。浏览器弹出消息网站安全证书存在问题。点击继续浏览此网站(不推荐),即可打开网页。





这是第一次给我在启用SSL设置时,任何人都可以帮助我实现相同的目标。



谢谢。

Hi,

I've written an MFC application where an ASP .NET Web Service is consumed by the application.

1. Web reference is added through Visual Studio "Add Web Reference".
2. Object of localhost is used to call the web service API.

This application works fine.


But as soon as i enable SSL setting for Web service the client MFC application is unable to process/call the web service. Although the web service is still accessible through web browser through HTTPS. Browser gives a popup message "There is problem with website security certificate". On click of "Continue to this website(not recommended)" the web page opens.


As this is the first time for me developing Web Service can anybody help me in achieving the same when the SSL setting is enabled.

Thanks.

推荐答案

参考



http://support.microsoft.com/ kb / 901183 [ ^ ]



http://stackoverflow.com/questions/109186/bypass-invalid-ssl-certificate-errors-when-calling-web-services-in-net [ ^ ]



这可能是对你有帮助
Refer

http://support.microsoft.com/kb/901183[^]

http://stackoverflow.com/questions/109186/bypass-invalid-ssl-certificate-errors-when-calling-web-services-in-net[^]

This may be helpful for you


谢谢,



我已经尝试过这个解决方案但我的问题是从纯粹的api调用api没有/ clr目标的MFC代码。是否可以这样做。

谢谢..
thanks,

I've already tried this solution but my question is to call the api from a pure MFC code without /clr target. Is it possible to do the same.
Thanks..


这篇关于如何通过MFC使用ASP .NET Web服务(HTTPS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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