lib/ews/connection.rb
# Every Connection class must have the dispatch method. It is what sends the
# SOAP request to the server and calls the parser method on the EWS instance.
#
# This was originally in the ExchangeWebService class but it was added here
# to make the processing chain easier to modify. For example, it allows the
# reactor pattern to handle the request with a callback.
# @param ews [Viewpoint::EWS::SOAP::ExchangeWebService] used to call
#   #parse_soap_response
# @param soapmsg [String]
# @param opts [Hash] misc opts for handling the Response
Every Connection class must have the dispatch method. It is what sends the
SOAP request to the server and calls the parser method on the EWS instance.

This was originally in the ExchangeWebService class but it was added here
to make the processing chain easier to modify. For example, it allows the
reactor pattern to handle the request with a callback.
Every Connection class must have the dispatch method . It is what sends the SOAP request to the server and calls the parser method on the EWS instance . This was originally in the ExchangeWebService class but it was added here to make the processing chain easier to modify . For example it allows the reactor pattern to handle the request with a callback .
def dispatch(ews, soapmsg, opts)
    if log.debug?
      log.debug { "REQUEST =============" }
      log.debug soapmsg
    end
    headers = {}
    set_mailbox_headers(ews, headers)
    respmsg = post(soapmsg, headers)
    @log.debug <<-EOF.gsub(/^ {6}/, '')
      Received SOAP Response:
      ----------------
      #{Nokogiri::XML(respmsg).to_xml}
      ----------------
    EOF
    if log.debug?
      log.debug { "RESPONSE =============" }
      log.debug Nokogiri::XML(respmsg).to_xml
    end
    opts[:raw_response] ? respmsg : ews.parse_soap_response(respmsg, opts)
  end
def dispatch ( ews , soapmsg , opts ) if log . debug? log . debug { "REQUEST =============" } log . debug soapmsg end headers = { } set_mailbox_headers ( ews , headers ) respmsg = post ( soapmsg , headers ) @log . debug <<-EOF . gsub ( / ^ {6} / , '' ) 
      Received SOAP Response:
      ----------------
       #{ Nokogiri :: XML ( respmsg ) . to_xml } 
      ----------------
     EOF if log . debug? log . debug { "RESPONSE =============" } log . debug Nokogiri :: XML ( respmsg ) . to_xml end opts [ :raw_response ] ? respmsg : ews . parse_soap_response ( respmsg , opts ) end
Every Connection class must have the dispatch method.
Every Connection class must have the dispatch method .
ews
used to call #parse_soap_response
used to call #parse_soap_response
soapmsg
opts
misc opts for handling the Response
misc opts for handling the Response
None