简体   繁体   English

Windows vs Linux上的gSOAP C ++代码

[英]gSOAP C++ code on Windows vs Linux

I'm using gSOAP with EWS via proxy services to connect to Exchange services. 我正在通过代理服务将gSOAP与EWS一起使用,以连接到Exchange服务。 I've fully working C++ gSOAP code for sending message on Windows, but when I compile and run the same code on Ubuntu, I've got 401 Unauthorized Error , Why? 我已经完全使用C ++ gSOAP代码在Windows上发送消息,但是当我在Ubuntu上编译并运行相同的代码时,却出现401 Unauthorized Error ,为什么?

On Windows: 在Windows上:

I've used the binaries of soapcpp2.exe and wsdl2h.exe to generate header files etc. 我已经使用soapcpp2.exe和wsdl2h.exe的二进制文件生成头文件等。

For compile and run: I'm using MobaXterm (a kind of Terminal) 进行编译和运行:我正在使用MobaXterm(一种终端)

Please anyone who are familiar with gSOAP help me to figure out the possible problem. 请熟悉gSOAP的任何人帮助我找出可能的问题。 Many thanks in advance. 提前谢谢了。

The 401 Unauthorized Error requires HTTP authentication, either with HTTPS and basic authentication or with HTTP digest authentication. 401未经授权的错误要求使用HTTPS和基本身份验证或HTTP摘要身份验证进行HTTP身份验证。 The proxy also likely requires authentication. 代理也可能需要身份验证。

See the tutorial on HTTP Digest Authentication 请参阅有关HTTP摘要式身份验证的教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM