Class: WSDL::Parser::MessageParts Private

Inherits:
Object
  • Object
show all
Defined in:
lib/wsdl/parser/input_output.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Base class for building message parts (headers and body) from WSDL operation definitions. Subclasses specify the message direction by implementing #message_reference and #headers.

Direct Known Subclasses

Input, Output

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(binding_operation, port_type_operation, documents:, schemas:, limits:, issues: nil, element_builder: nil) ⇒ MessageParts

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Creates a new MessageParts instance.

rubocop:disable Metrics/ParameterLists -- per-operation + build context

Parameters:

  • binding_operation (BindingOperation)

    the binding operation with protocol details

  • port_type_operation (PortTypeOperation)

    the port type operation with interface details

  • documents (DocumentCollection)

    for resolving message references

  • schemas (Schema::Collection)

    for building element trees

  • limits (Limits)

    resource limits for element building

  • issues (Array, nil) (defaults to: nil)

    optional issues collector for recording build problems

  • element_builder (Object, nil) (defaults to: nil)


22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/wsdl/parser/input_output.rb', line 22

def initialize(binding_operation, port_type_operation,
               documents:, schemas:, limits:, issues: nil, element_builder: nil)
  @binding_operation = binding_operation
  @port_type_operation = port_type_operation
  @documents = documents
  @schemas = schemas
  @limits = limits
  @issues = issues
  @element_builder = element_builder

  build_parts
end

Instance Attribute Details

#body_partsArray<XML::Element> (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The body part elements for this message.

These elements define the structure of the SOAP body.

Returns:



48
49
50
# File 'lib/wsdl/parser/input_output.rb', line 48

def body_parts
  @body_parts
end

#header_partsArray<XML::Element> (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The header part elements for this message.

These elements define the structure of the SOAP header.

Returns:



41
42
43
# File 'lib/wsdl/parser/input_output.rb', line 41

def header_parts
  @header_parts
end