Class: Zimbra::HandsoapAccountService
- Inherits:
-
Handsoap::Service
- Object
- Handsoap::Service
- Zimbra::HandsoapAccountService
- Extended by:
- HandsoapAccountUriOverrides
- Includes:
- HandsoapAccountNamespaces, HandsoapErrors
- Defined in:
- lib/zimbra/handsoap_account_service.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods included from HandsoapAccountUriOverrides
envelope_namespace, request_content_type, uri
Methods included from HandsoapAccountNamespaces
#request_namespaces, #response_namespaces
Methods included from HandsoapErrors
#http_error?, #http_not_found?, #on_after_create_http_request, #on_http_error, #report_error, #soap_fault_not_found?
Instance Method Details
#on_create_document(doc) ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/zimbra/handsoap_account_service.rb', line 32 def on_create_document(doc) request_namespaces(doc) header = doc.find("Header") header.add "n1:context" do |s| s.set_attr "env:mustUnderstand", "0" s.add "n1:authToken", Zimbra.account_auth_token end end |
#on_response_document(doc) ⇒ Object
40 41 42 |
# File 'lib/zimbra/handsoap_account_service.rb', line 40 def on_response_document(doc) response_namespaces(doc) end |