Class: RetrieveServiceContent
- Inherits:
-
Invocable
- Object
- Invocable
- RetrieveServiceContent
- Defined in:
- /build/mts/release/bora-4571906/vcsuite-sdks/ruby/samples/lib/sample/framework/lookup_service_helper.rb
Overview
Encapsulates the RetrieveServiceContent operation of the lookup service.
Instance Attribute Summary
Attributes inherited from Invocable
#client, #operation, #response
Instance Method Summary (collapse)
-
- (Object) body_xml(body)
ServiceInstance.
-
- (Object) get_service_registration
…
-
- (RetrieveServiceContent) initialize(client)
constructor
Constructs a new instance.
Methods inherited from Invocable
#invoke, #request_xml, #response_hash, #response_xml
Constructor Details
- (RetrieveServiceContent) initialize(client)
Constructs a new instance.
412 413 414 |
# File '/build/mts/release/bora-4571906/vcsuite-sdks/ruby/samples/lib/sample/framework/lookup_service_helper.rb', line 412 def initialize(client) super(:retrieve_service_content, client) end |
Instance Method Details
- (Object) body_xml(body)
<S:Body>
<RetrieveServiceContent xmlns="urn:lookup">
<_this type="LookupServiceInstance">ServiceInstance</_this>
</RetrieveServiceContent>
</S:Body>
</S:Envelope>
425 426 427 428 429 430 431 |
# File '/build/mts/release/bora-4571906/vcsuite-sdks/ruby/samples/lib/sample/framework/lookup_service_helper.rb', line 425 def body_xml(body) body.tag!("RetrieveServiceContent", "xmlns" => "urn:lookup") do |rsc| rsc.tag!("_this", "type" => "LookupServiceInstance") do |this| this << "ServiceInstance" end end end |
- (Object) get_service_registration
…
<RetrieveServiceContentResponse xmlns="urn:lookup">
<returnval>
<lookupService type="LookupLookupService">lookupService</lookupService>
<serviceRegistration type="LookupServiceRegistration">ServiceRegistration</serviceRegistration>
<deploymentInformationService type="LookupDeploymentInformationService">deploymentInformationService</deploymentInformationService>
<l10n type="LookupL10n">l10n</l10n>
</returnval>
</RetrieveServiceContentResponse>
...
445 446 447 448 449 450 451 |
# File '/build/mts/release/bora-4571906/vcsuite-sdks/ruby/samples/lib/sample/framework/lookup_service_helper.rb', line 445 def get_service_registration Sample.log.debug "RetrieveServiceContent: response_hash = #{response_hash}" return_val = response_hash[:retrieve_service_content_response][:returnval] result = return_val[:service_registration] Sample.log.debug "RetrieveServiceContent: result = #{result}" result end |