Class: BasicService
- Inherits:
-
Handsoap::Service
- Object
- Handsoap::Service
- BasicService
- Defined in:
- lib/basic_service.rb
Overview
Implements basic logic used by developer garden ruby service implementations.
Direct Known Subclasses
Constant Summary collapse
- @@SERVICE_ID =
"https://odg.t-online.de"
Instance Method Summary collapse
-
#initialize(username, password, environment = ServiceEnvironment.SANDBOX) ⇒ BasicService
constructor
- Constructor ===Parameters
username
- Username, such as [email protected]
password
- Password
environment
-
Service environment as defined in ServiceEnvironment.
- Password
- Username, such as [email protected]
- Constructor ===Parameters
-
#on_create_document(doc) ⇒ Object
Create some namespaces.
-
#on_response_document(doc) ⇒ Object
Create the namespace for a later use in parse_token_data.
Constructor Details
#initialize(username, password, environment = ServiceEnvironment.SANDBOX) ⇒ BasicService
Constructor
Parameters
username
-
Username, such as [email protected]
password
-
Password
environment
-
Service environment as defined in ServiceEnvironment
29 30 31 32 33 |
# File 'lib/basic_service.rb', line 29 def initialize(username, password, environment = ServiceEnvironment.SANDBOX) @username = username @password = password @environment = environment end |
Instance Method Details
#on_create_document(doc) ⇒ Object
Create some namespaces
14 15 16 17 |
# File 'lib/basic_service.rb', line 14 def on_create_document(doc) doc.alias 'ns1', "http://sts.idm.telekom.com/schema/" doc.alias 'xmlns:ns2', "Security" end |
#on_response_document(doc) ⇒ Object
Create the namespace for a later use in parse_token_data
20 21 22 |
# File 'lib/basic_service.rb', line 20 def on_response_document(doc) doc.add_namespace 'schema', 'http://sts.idm.telekom.com/schema/' end |