Module: Papercraft::Extensions::Soap

Defined in:
lib/papercraft/extensions/soap.rb

Instance Method Summary collapse

Instance Method Details

#Body(**props, &blk) ⇒ void

This method returns an undefined value.

Emits a SOAP XML tag that contains header information.

Parameters:

  • **props (Hash)

    tag attributes



27
28
29
# File 'lib/papercraft/extensions/soap.rb', line 27

def Body(**props, &blk)
  tag('soap:Body', **props, &blk)
end

#Envelope(**props, &block) ⇒ void

This method returns an undefined value.

Emits a SOAP XML tag that identifies the XML document as a SOAP message.

Parameters:

  • **props (Hash)

    tag attributes



10
11
12
13
# File 'lib/papercraft/extensions/soap.rb', line 10

def Envelope(**props, &block)
  props[:xmlns__soap] ||= 'http://schemas.xmlsoap.org/soap/envelope/'
  tag('soap:Envelope', **props, &block)
end

#Fault(**props, &blk) ⇒ void

This method returns an undefined value.

Emits a SOAP XML tag that contains errors and status information.

Parameters:

  • **props (Hash)

    tag attributes



35
36
37
# File 'lib/papercraft/extensions/soap.rb', line 35

def Fault(**props, &blk)
  tag('soap:Fault', **props, &blk)
end

#Header(**props, &blk) ⇒ void

This method returns an undefined value.

Emits a SOAP XML tag that contains header information.

Parameters:

  • **props (Hash)

    tag attributes



19
20
21
# File 'lib/papercraft/extensions/soap.rb', line 19

def Header(**props, &blk)
  tag('soap:Header', **props, &blk)
end