0
EWSメソッドを呼び出すためにC++でGSOAPクライアントアプリケーションを作成しました。私のEWSはhttps URLです。正しい資格情報のみを使用していますが、私は次のように応答します。HTTP/1.1 401 GSOAPでEWSを呼び出す際の不正なエラー
HTTP/1.1 401 Unauthorized Cache-Control: private Server: Microsoft-IIS/7.5 X-AspNet-Version: 2.0.50727 Set-Cookie: exchangecookie=b56b1f57339240a88983be18ce6a50ad; expires=Wed, 30-Jan-2013 10:59:16 GMT; path=/; HttpOnly WWW-Authenticate: Negotiate WWW-Authenticate: NTLM X-Powered-By: ASP.NET Date: Mon, 30 Jan 2012 10:59:16 GMT Connection: close Content-Length: 0
以下に私のコードスニペットを示します。
ExchangeServiceBindingProxy *proxy = new ExchangeServiceBindingProxy();
proxy->soap_endpoint = "https://xxxx/EWS/exchange.asmx";
proxy->userid = "xxxxx";
proxy->passwd= "xxxxx";
proxy->recv_timeout = 300;
proxy->send_timeout = 300;
proxy->version = ns3__ExchangeVersionType__Exchange2010;
soap_ssl_init();
if (soap_ssl_client_context(proxy,SOAP_SSL_NO_AUTHENTICATION, NULL, NULL, NULL,NULL,NULL)){ exit(1);}
何か問題が発生した可能性があります。
ありがとうございました。
こんにちは!アレックスあなたが私を助けることができるかもしれない。私はgSoap EWSプロキシクラスを扱う方法を理解できません。私の質問を見てもよろしいですか^ [link](http://stackoverflow.com/questions/19487222/gsoap-exchange-web-services-connection) – IStar