I still have not found a solution, but yet another error which is the
"SOAP::PostUnavailableError: 405: Method Not Allowed". Here is the
code in
which I am trying now:
require 'rubygems'
gem 'soap4r'
require 'defaultDriver'
endpoint = '
https://my.exchange.com/ews/'
user = 'user'
pass = 'pass'
driver = ExchangeServicePortType.new(endpoint)
driver.wiredump_dev = STDERR
driver.options['protocol.http.auth.ntlm'] = [endpoint,user,pass]
#driver.options['protocol.http.ssl_config.ca_file'] = ISSUER_CA_PEM
#driver.options['protocol.http.ssl_config.verify_callback'] =
method(:validate_certificate)
driver.options["protocol.http.ssl_config.verify_mode"] = nil
result = driver.getUserOofSettings('myemailaddress',nil)
puts result.inspect
The Wiredump is very long but after being connected to the server the
response is:
= Response
HTTP/1.1 405 Method Not Allowed
Allow: OPTIONS, TRACE, GET, HEAD
Content-Length: 1564
Content-Type: text/html
Server: Microsoft-IIS/6.0
X-Powered-By:
ASP.NET
Date: Thu, 19 Feb 2009 15:31:52 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>The page cannot be displayed</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html;
charset=Windows-1252">
<STYLE type="text/css">
BODY { font: 8pt/12pt verdana }
H1 { font: 13pt/15pt verdana }
H2 { font: 8pt/12pt verdana }
A:link { color: red }
A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>
<h1>The page cannot be displayed</h1>
The page you are looking for cannot be displayed because an invalid
method
(HTTP verb) was used to attempt access.
<hr>
<p>Please try the following:</p>
<ul>
<li>Contact the Web site administrator if you believe that this
request
should be allowed.</li>
<li>Make sure that the Web site address displayed in the address bar
of your
browser is spelled and formatted correctly. </li>
</ul>
<h2>HTTP Error 405 - The HTTP verb used to access this page is not
allowed.<br>Internet Information Services (IIS)</h2>
<hr>
<p>Technical Information (for support personnel)</p>
<ul>
<li>Go to <a href="
http://go.microsoft.com/fwlink/?
linkid=8180">Microsoft
Product Support Services</a> and perform a title search for the words
<b>HTTP</b> and <b>405</b>.</li>
<li>Open <b>IIS Help</b>, which is accessible in IIS Manager
(inetmgr),
and search for topics titled <b>Setting Application Mappings</b>,
<b>Securing Your Site with Web Site Permissions</b>, and <b>About
Custom
Error Messages</b>.</li>
</ul>
</TD></TR></TABLE></BODY></HTML>
If you have any ideas or solutions to this problem then please help!
Thanks,
Justin